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:
parent
eb3cb3b287
commit
7276be1aeb
4
cron.php
4
cron.php
@ -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());
|
||||
|
||||
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user