Cache: cleanup permissions cache when removing a file from the cache

This commit is contained in:
Robin Appelman 2013-02-28 17:04:50 +01:00
parent f7a43391a7
commit ee1eb98d4a

View file

@ -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']);
}
/**