diff options
Diffstat (limited to 'lib/cache.php')
-rw-r--r-- | lib/cache.php | 7 |
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); } /** |