Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-22 04:31:43 +0400
committerRobin Appelman <icewind@owncloud.com>2012-07-22 04:31:48 +0400
commit51566e87c7343385ae3b6854386c20974c94a53d (patch)
tree35b50a0cf64ed280f037902a87504d2af3a92428 /lib/cache.php
parent2b747789588e34bce24bd558f7e979a6e0ea8047 (diff)
add prefix option to OC_Cache::clear
Diffstat (limited to 'lib/cache.php')
-rw-r--r--lib/cache.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/cache.php b/lib/cache.php
index 6f4b3e6e3f6..36f409ab71a 100644
--- a/lib/cache.php
+++ b/lib/cache.php
@@ -99,12 +99,13 @@ class OC_Cache {
}
/**
- * clear the user cache
+ * clear the user cache of all entries starting with a prefix
+ * @param string prefix (optional)
* @return bool
*/
- static public function clear() {
+ static public function clear($prefix='') {
$user_cache = self::getUserCache();
- return $user_cache->clear();
+ return $user_cache->clear($prefix);
}
/**