mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Fixes #1327 Cron Last Refresh value was being lost when cache was cleared.
This commit is contained in:
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,8 +343,8 @@ 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);
|
||||
|
||||
|
Reference in New Issue
Block a user