summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-28 17:04:50 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-28 17:04:50 +0100
commitee1eb98d4aadf980297ae81017e213d7c22e1c25 (patch)
tree31dbb90d5e2eda9660cecf25a230459a9af8cbf5 /lib
parentf7a43391a7de336a6816304478c08017e24a2a54 (diff)
downloadnextcloud-server-ee1eb98d4aadf980297ae81017e213d7c22e1c25.tar.gz
nextcloud-server-ee1eb98d4aadf980297ae81017e213d7c22e1c25.zip
Cache: cleanup permissions cache when removing a file from the cache
Diffstat (limited to 'lib')
-rw-r--r--lib/files/cache/cache.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/files/cache/cache.php b/lib/files/cache/cache.php
index 01e6e788263..f288919df74 100644
--- a/lib/files/cache/cache.php
+++ b/lib/files/cache/cache.php
@@ -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']);
}
/**