mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Cache: cleanup permissions cache when removing a file from the cache
This commit is contained in:
parent
f7a43391a7
commit
ee1eb98d4a
1 changed files with 3 additions and 0 deletions
3
lib/files/cache/cache.php
vendored
3
lib/files/cache/cache.php
vendored
|
|
@ -313,6 +313,9 @@ class Cache {
|
|||
}
|
||||
$query = \OC_DB::prepare('DELETE FROM `*PREFIX*filecache` WHERE `fileid` = ?');
|
||||
$query->execute(array($entry['fileid']));
|
||||
|
||||
$permissionsCache = new Permissions($this->storageId);
|
||||
$permissionsCache->remove($entry['fileid']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue