Commit 2a2f6991 authored by Bartosz Romanowski's avatar Bartosz Romanowski

Added the cache key to avoid cache overwritting

parent b031fdf4
......@@ -40,7 +40,7 @@ class APC implements \System\Cache\Driver {
// --------------------------------------------------
// 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 @@ class APC implements \System\Cache\Driver {
*/
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)
{
apc_delete($key);
apc_delete(\System\Config::get('cache.key').$key);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment