Skip to content
Snippets Groups Projects
Commit ee1eb98d authored by Robin Appelman's avatar Robin Appelman
Browse files

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

parent f7a43391
No related merge requests found
......@@ -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']);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment