Commit e09cc16c by Alexander Makarov

ApcCache is now compatible with APCu

parent fbfa18e6
...@@ -124,6 +124,10 @@ class ApcCache extends Cache ...@@ -124,6 +124,10 @@ class ApcCache extends Cache
*/ */
protected function flushValues() protected function flushValues()
{ {
if (extension_loaded('apcu')) {
return apc_clear_cache();
} else {
return apc_clear_cache('user'); return apc_clear_cache('user');
} }
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment