diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-07-22 02:31:43 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-07-22 02:31:48 +0200 |
commit | 51566e87c7343385ae3b6854386c20974c94a53d (patch) | |
tree | 35b50a0cf64ed280f037902a87504d2af3a92428 /lib/cache.php | |
parent | 2b747789588e34bce24bd558f7e979a6e0ea8047 (diff) | |
download | nextcloud-server-51566e87c7343385ae3b6854386c20974c94a53d.tar.gz nextcloud-server-51566e87c7343385ae3b6854386c20974c94a53d.zip |
add prefix option to OC_Cache::clear
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); } /** |