From 716cc5a754cf2ec3ecf0145d671d97582d911681 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Wed, 27 Aug 2014 18:51:06 -0400 Subject: [PATCH] Disable the APC cache for Ubuntu 14.04. APC is deprecated now so we need a better solution anyways. --- airtime_mvc/application/models/Cache.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/airtime_mvc/application/models/Cache.php b/airtime_mvc/application/models/Cache.php index fc473395a..af4e6417b 100644 --- a/airtime_mvc/application/models/Cache.php +++ b/airtime_mvc/application/models/Cache.php @@ -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); } -} \ No newline at end of file +}