Disable the APC cache for Ubuntu 14.04. APC is deprecated now so we need a better solution anyways.
This commit is contained in:
parent
8c869914f0
commit
716cc5a754
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue