mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-10-30 23:46:24 +01:00 
			
		
		
		
	* Fixed missing prefix for cache get() and delete() functions
Cause those functions to not work correctly..
This commit is contained in:
		| @@ -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() { | ||||
|   | ||||
| @@ -31,7 +31,7 @@ class Cache_APCu | ||||
| 	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_APCu | ||||
| 	} | ||||
|  | ||||
| 	public function delete($key) { | ||||
| 		apcu_delete($key); | ||||
| 		apcu_delete($this->prefix . $key); | ||||
| 	} | ||||
|  | ||||
| 	public function enabled() { | ||||
|   | ||||
| @@ -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() { | ||||
|   | ||||
| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 slawkens
					slawkens