Skip to content
Snippets Groups Projects
Commit a8ff1505 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

backwards compat to older xcache versions, don't fail when trying to clear cache by prefix

parent e5487376
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,12 @@ class OC_Cache_XCache {
}
public function clear($prefix='') {
if(!function_exists('xcache_unset_by_prefix')) {
function xcache_unset_by_prefix($prefix) {
// Since we can't clear targetted cache, we'll clear all. :(
xcache_clear_cache(XC_TYPE_VAR, 0);
}
}
xcache_unset_by_prefix($this->getNamespace().$prefix);
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment