diff --git a/cron.php b/cron.php index cfc980622..0c734a43d 100644 --- a/cron.php +++ b/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()); diff --git a/e107_admin/cron.php b/e107_admin/cron.php index 0347aaecb..f9a399b01 100644 --- a/e107_admin/cron.php +++ b/e107_admin/cron.php @@ -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.