if ($oldcacheitem->timemodified >= $time) {
if (defined('FULLME') and FULLME == 'cron') {
if (count($croncache) > 150) {
- array_shift($croncache);
+ reset($croncache);
+ $key = key($croncache);
+ unset($croncache[$key]);
}
$croncache[$md5key] = $oldcacheitem->formattedtext;
}
if (defined('FULLME') and FULLME == 'cron') {
// special static cron cache - no need to store it in db if its not already there
if (count($croncache) > 150) {
- array_shift($croncache);
+ reset($croncache);
+ $key = key($croncache);
+ unset($croncache[$key]);
}
$croncache[$md5key] = $text;
return $text;