Disable the APC cache for Ubuntu 14.04. APC is deprecated now so we need a better solution anyways.

This commit is contained in:
Albert Santoni 2014-08-27 18:51:06 -04:00
parent 8c869914f0
commit 716cc5a754

View file

@ -2,7 +2,6 @@
class Cache
{
private function createCacheKey($key, $isUserValue, $userId = null) {
$CC_CONFIG = Config::getConfig();
@ -20,13 +19,13 @@ class Cache
public function store($key, $value, $isUserValue, $userId = null) {
$cacheKey = self::createCacheKey($key, $userId);
return apc_store($cacheKey, $value);
//$cacheKey = self::createCacheKey($key, $userId);
return false; ///apc_store($cacheKey, $value);
}
public function fetch($key, $isUserValue, $userId = null) {
$cacheKey = self::createCacheKey($key, $isUserValue, $userId);
return apc_fetch($cacheKey);
//$cacheKey = self::createCacheKey($key, $isUserValue, $userId);
return false; //apc_fetch($cacheKey);
}
}
}