private function _cron()
{
$this->benchmark->mark('cron_start');
// If it hasn't ran since yesterday
if ($this->settings->get_setting('script_last_cron') < strtotime("-1 day")) {
if (!defined('NO_VERSION_CHECK')) {
$this->load->helper('version');
$this->settings->edit_setting('script_latest', version_check());
}
// Call any events that use cron
$this->events->trigger('cron');
// Set the last_cron to now.
$this->settings->edit_setting('script_last_cron', time());
}
$this->benchmark->mark('cron_end');
}