File inc/cache.inc.php changed (mode: 100644) (index 04f1310..587c77d) |
... |
... |
function rg_cache_get($ns_var) |
456 |
456 |
} |
} |
457 |
457 |
|
|
458 |
458 |
if ($rg_cache_debug) |
if ($rg_cache_debug) |
459 |
|
rg_log_ml('cache_get returns: ' . print_r($ret, TRUE)); |
|
|
459 |
|
rg_log_ml('cache_get[' . $ns_var . '] returns: ' |
|
460 |
|
. ($ret === FALSE ? 'FALSE' : print_r($ret, TRUE))); |
460 |
461 |
|
|
461 |
462 |
rg_prof_end('cache_get'); |
rg_prof_end('cache_get'); |
462 |
463 |
return $ret; |
return $ret; |
|
... |
... |
function rg_cache_get($ns_var) |
467 |
468 |
*/ |
*/ |
468 |
469 |
function rg_cache_set($ns_var, $value, $flags) |
function rg_cache_set($ns_var, $value, $flags) |
469 |
470 |
{ |
{ |
|
471 |
|
global $rg_cache_debug; |
|
472 |
|
|
470 |
473 |
rg_prof_start('cache_set'); |
rg_prof_start('cache_set'); |
471 |
474 |
|
|
472 |
475 |
while (1) { |
while (1) { |
|
... |
... |
function rg_cache_set($ns_var, $value, $flags) |
478 |
481 |
if ($ret === FALSE) |
if ($ret === FALSE) |
479 |
482 |
break; |
break; |
480 |
483 |
|
|
|
484 |
|
if ($rg_cache_debug) |
|
485 |
|
rg_log_ml('cache_set[' . $ns_var . '] = ' . print_r($value, TRUE)); |
|
486 |
|
|
481 |
487 |
$ret = TRUE; |
$ret = TRUE; |
482 |
488 |
break; |
break; |
483 |
489 |
} |
} |