Closed
Description
When a file is deleted, we also delete it from the cache, but it looks like we look for cached resources based on resource:
appwrite/app/workers/deletes.php
Line 138 in 0a5d53e
which is just a file ID:
appwrite/app/controllers/api/storage.php
Line 802 in 0a5d53e
The problem with this is if a file has the same ID in multiple buckets, they'll also be deleted.
Originally posted by @stnguyen90 in #5698 (comment)