Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 1709785

Browse files
committed
Ignore kv cache
1 parent a9c28fb commit 1709785

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/core/classes/class.AJXP_KeyValueCache.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ protected function makeId($id){
4646
*/
4747
public function fetch($id){
4848
if(!function_exists('apc_fetch')) return FALSE;
49+
if(defined('AJXP_KVCACHE_IGNORE') && AJXP_KVCACHE_IGNORE) return FALSE;
4950
$result = apc_fetch($this->makeId($id), $success);
5051
if($success) return $result;
5152
else return false;
@@ -59,6 +60,7 @@ public function fetch($id){
5960
*/
6061
public function contains($id){
6162
if(!function_exists('apc_fetch')) return FALSE;
63+
if(defined('AJXP_KVCACHE_IGNORE') && AJXP_KVCACHE_IGNORE) return FALSE;
6264
apc_fetch($this->makeId($id), $success);
6365
return $success;
6466
}

0 commit comments

Comments
 (0)