summaryrefslogtreecommitdiffstats
path: root/lib/cache/xcache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-07-22 02:31:43 +0200
committerRobin Appelman <icewind@owncloud.com>2012-07-22 02:31:48 +0200
commit51566e87c7343385ae3b6854386c20974c94a53d (patch)
tree35b50a0cf64ed280f037902a87504d2af3a92428 /lib/cache/xcache.php
parent2b747789588e34bce24bd558f7e979a6e0ea8047 (diff)
downloadnextcloud-server-51566e87c7343385ae3b6854386c20974c94a53d.tar.gz
nextcloud-server-51566e87c7343385ae3b6854386c20974c94a53d.zip
add prefix option to OC_Cache::clear
Diffstat (limited to 'lib/cache/xcache.php')
-rw-r--r--lib/cache/xcache.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cache/xcache.php b/lib/cache/xcache.php
index bd55cee8f6b..951f9b47545 100644
--- a/lib/cache/xcache.php
+++ b/lib/cache/xcache.php
@@ -43,7 +43,8 @@ class OC_Cache_XCache {
return xcache_unset($this->getNamespace().$key);
}
- public function clear(){
- return xcache_unset_by_prefix($this->getNamespace());
+ public function clear($prefix=''){
+ xcache_unset_by_prefix($this->getNamespace().$prefix);
+ return true;
}
}