Added the cache key to avoid cache overwritting
This commit is contained in:
parent
b031fdf43d
commit
2a2f699169
|
@ -40,7 +40,7 @@ public function get($key, $default = null)
|
|||
// --------------------------------------------------
|
||||
// Attempt to the get the item from cache.
|
||||
// --------------------------------------------------
|
||||
$cache = apc_fetch($key);
|
||||
$cache = apc_fetch(\System\Config::get('cache.key').$key);
|
||||
|
||||
// --------------------------------------------------
|
||||
// Verify that the item was retrieved.
|
||||
|
@ -63,7 +63,7 @@ public function get($key, $default = null)
|
|||
*/
|
||||
public function put($key, $value, $minutes)
|
||||
{
|
||||
apc_store($key, $value, $minutes * 60);
|
||||
apc_store(\System\Config::get('cache.key').$key, $value, $minutes * 60);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,7 +74,7 @@ public function put($key, $value, $minutes)
|
|||
*/
|
||||
public function forget($key)
|
||||
{
|
||||
apc_delete($key);
|
||||
apc_delete(\System\Config::get('cache.key').$key);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue