completely remove deactivated cache
Cache handling has been disabled on saas-dev and 2.5.x at least for a while. This gets completely rid of it. You should do caching on the byte-code level in PHP using the tool best fitting your needs and depending on the exact PHP version you are running this on. Proper cache hygiene ist a routine part of maintenance and may need seperate addressing depending on the needs of your station.
This commit is contained in:
parent
0f8c3b7c92
commit
21356d1894
3 changed files with 0 additions and 60 deletions
|
@ -23,7 +23,6 @@ class Application_Model_Preference
|
|||
*/
|
||||
private static function setValue($key, $value, $isUserValue = false)
|
||||
{
|
||||
$cache = new Cache();
|
||||
$con = Propel::getConnection(CcPrefPeer::DATABASE_NAME);
|
||||
|
||||
//We are using row-level locking in Postgres via "FOR UPDATE" instead of a transaction here
|
||||
|
@ -109,8 +108,6 @@ class Application_Model_Preference
|
|||
Logging::info("Database error: ".$e->getMessage());
|
||||
exit;
|
||||
}
|
||||
|
||||
$cache->store($key, $value, $isUserValue, $userId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -143,8 +140,6 @@ class Application_Model_Preference
|
|||
*/
|
||||
private static function getValue($key, $isUserValue = false, $forceDefault = false)
|
||||
{
|
||||
$cache = new Cache();
|
||||
|
||||
try {
|
||||
|
||||
$userId = null;
|
||||
|
@ -156,10 +151,6 @@ class Application_Model_Preference
|
|||
}
|
||||
}
|
||||
|
||||
// If the value is already cached, return it
|
||||
$res = $cache->fetch($key, $isUserValue, $userId);
|
||||
if ($res !== false) return $res;
|
||||
|
||||
//Check if key already exists
|
||||
$sql = "SELECT COUNT(*) FROM cc_pref"
|
||||
." WHERE keystr = :key";
|
||||
|
@ -198,7 +189,6 @@ class Application_Model_Preference
|
|||
$res = ($result !== false) ? $result : "";
|
||||
}
|
||||
|
||||
$cache->store($key, $res, $isUserValue, $userId);
|
||||
return $res;
|
||||
}
|
||||
catch (Exception $e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue