summaryrefslogtreecommitdiffstats
path: root/lib/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cache.php')
-rw-r--r--lib/cache.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/cache.php b/lib/cache.php
index a4fb2448432..36cec63aa57 100644
--- a/lib/cache.php
+++ b/lib/cache.php
@@ -37,4 +37,11 @@ class OC_Cache {
return self::$cache->remove($key);
}
+ static public function clear() {
+ if (!self::$cache) {
+ self::init();
+ }
+ return self::$cache->clear();
+ }
+
}