aboutsummaryrefslogtreecommitdiffstats
path: root/lib/filecache
diff options
context:
space:
mode:
authorscambra <sergio@entrecables.com>2012-06-14 16:09:32 +0200
committerscambra <sergio@entrecables.com>2012-10-16 17:34:35 +0200
commite8441becdba97ce46585043a071d01b5c74526a6 (patch)
tree16f0f678748aa04344cddf7129b818294f14ada5 /lib/filecache
parente7c9d5fe54ec619793ae77829b93df4635279662 (diff)
downloadnextcloud-server-e8441becdba97ce46585043a071d01b5c74526a6.tar.gz
nextcloud-server-e8441becdba97ce46585043a071d01b5c74526a6.zip
delete fscache on deleting user
Diffstat (limited to 'lib/filecache')
-rw-r--r--lib/filecache/update.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/filecache/update.php b/lib/filecache/update.php
index 4a5ea873b17..f9d64d0ae99 100644
--- a/lib/filecache/update.php
+++ b/lib/filecache/update.php
@@ -216,4 +216,12 @@ class OC_FileCache_Update{
OC_FileCache::increaseSize(dirname($newPath), $oldSize, $root);
OC_FileCache::move($oldPath, $newPath);
}
+
+ /**
+ * delete files owned by user from the cache
+ * @param string $parameters$parameters["uid"])
+ */
+ public static function deleteFromUser($parameters) {
+ OC_FileCache::clear($parameters["uid"]);
+ }
}