Browse Source

ApcCache is now compatible with APCu

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

4
framework/yii/caching/ApcCache.php

@ -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');
} }
}
} }

Loading…
Cancel
Save