1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-18 03:31:54 +02:00

Fixes #1327 Cron Last Refresh value was being lost when cache was cleared.

This commit is contained in:
Cameron 2016-02-05 18:57:40 -08:00
parent eb3cb3b287
commit 7276be1aeb
2 changed files with 5 additions and 5 deletions

View File

@ -65,8 +65,8 @@ require_once(realpath(dirname(__FILE__)."/class2.php"));
}
e107::getCache()->CachePageMD5 = '_';
e107::getCache()->set('cronLastLoad',time(),TRUE,FALSE,TRUE);
// e107::getCache()->CachePageMD5 = '_';
@file_put_contents(e_CACHE.'cronLastLoad.php',time());

View File

@ -343,9 +343,9 @@ class cron_admin_ui extends e_admin_ui
$mes = e107::getMessage();
$frm = e107::getForm();
e107::getCache()->CachePageMD5 = '_';
$lastload = e107::getCache()->retrieve('cronLastLoad', false, true, true);
$lastload = intval(@file_get_contents(e_CACHE.'cronLastLoad.php'));
$ago = (time() - $lastload);
$active = ($ago < 1200) ? true : false; // longer than 20 minutes, so lets assume it's inactive.