Browse Source

ApcCache is now compatible with APCu

tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
e09cc16c49
  1. 6
      framework/yii/caching/ApcCache.php

6
framework/yii/caching/ApcCache.php

@ -124,6 +124,10 @@ class ApcCache extends Cache
*/
protected function flushValues()
{
return apc_clear_cache('user');
if (extension_loaded('apcu')) {
return apc_clear_cache();
} else {
return apc_clear_cache('user');
}
}
}

Loading…
Cancel
Save