8000 Ensure cached resource from correct bucket is deleted · Issue #5861 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Ensure cached resource from correct bucket is deleted #5861
Closed
@stnguyen90

Description

@stnguyen90

When a file is deleted, we also delete it from the cache, but it looks like we look for cached resources based on resource:

Query::equal('resource', [$this->args['resource']]),

which is just a file ID:

->label('cache.resource', 'file/{request.fileId}')

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)

Metadata

Metadata

Assignees

Labels

product / storageFixes and upgrades for the Appwrite Storage.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0