From d5cc2a1090a12c6459044a4cdfc3a7cd4632b5ec Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 1 Jun 2018 15:03:13 +0200 Subject: [PATCH] * Fixed missing prefix for cache get() and delete() functions Cause those functions to not work correctly.. (cherry picked from commit b3625df) --- system/libs/cache_apc.php | 4 ++-- system/libs/cache_eaccelerator.php | 4 ++-- system/libs/cache_xcache.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/system/libs/cache_apc.php b/system/libs/cache_apc.php index 8439d5ca..f936953e 100644 --- a/system/libs/cache_apc.php +++ b/system/libs/cache_apc.php @@ -31,7 +31,7 @@ class Cache_APC public function get($key) { $tmp = ''; - if($this->fetch($key, $tmp)) + if($this->fetch($this->prefix . $key, $tmp)) return $tmp; return ''; @@ -42,7 +42,7 @@ class Cache_APC } public function delete($key) { - apc_delete($key); + apc_delete($this->prefix . $key); } public function enabled() { diff --git a/system/libs/cache_eaccelerator.php b/system/libs/cache_eaccelerator.php index 118c6461..1d776f26 100644 --- a/system/libs/cache_eaccelerator.php +++ b/system/libs/cache_eaccelerator.php @@ -30,7 +30,7 @@ class Cache_eAccelerator public function get($key) { $tmp = ''; - if($this->fetch($key, $tmp)) + if($this->fetch($this->prefix . $key, $tmp)) return $tmp; return ''; @@ -41,7 +41,7 @@ class Cache_eAccelerator } public function delete($key) { - eaccelerator_rm($key); + eaccelerator_rm($this->prefix . $key); } public function enabled() { diff --git a/system/libs/cache_xcache.php b/system/libs/cache_xcache.php index 754bf7d0..0e80bfb6 100644 --- a/system/libs/cache_xcache.php +++ b/system/libs/cache_xcache.php @@ -30,7 +30,7 @@ class Cache_XCache public function get($key) { $tmp = ''; - if($this->fetch($key, $tmp)) + if($this->fetch($this->prefix . $key, $tmp)) return $tmp; return ''; @@ -47,7 +47,7 @@ class Cache_XCache } public function delete($key) { - xcache_unset($key); + xcache_unset($this->prefix . $key); } public function enabled() {