Added the cache key to avoid cache overwritting

This commit is contained in:
Bartosz Romanowski 2011-06-19 00:12:05 +02:00
parent b031fdf43d
commit 2a2f699169
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public function get($key, $default = null)
// -------------------------------------------------- // --------------------------------------------------
// 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 @@ public function get($key, $default = null)
*/ */
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 @@ public function put($key, $value, $minutes)
*/ */
public function forget($key) public function forget($key)
{ {
apc_delete($key); apc_delete(\System\Config::get('cache.key').$key);
} }
} }