Added the cache key to avoid cache overwritting
This commit is contained in:
6
system/cache/driver/apc.php
vendored
6
system/cache/driver/apc.php
vendored
@@ -40,7 +40,7 @@ class APC implements \System\Cache\Driver {
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
// Attempt to the get the item from cache.
|
// 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.
|
// Verify that the item was retrieved.
|
||||||
@@ -63,7 +63,7 @@ class APC implements \System\Cache\Driver {
|
|||||||
*/
|
*/
|
||||||
public function put($key, $value, $minutes)
|
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 @@ class APC implements \System\Cache\Driver {
|
|||||||
*/
|
*/
|
||||||
public function forget($key)
|
public function forget($key)
|
||||||
{
|
{
|
||||||
apc_delete($key);
|
apc_delete(\System\Config::get('cache.key').$key);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user