summaryrefslogtreecommitdiffstats
path: root/lib/cache/xcache.php
diff options
context:
space:
mode:
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;
}
}