public function should_run()
{
if (!empty($this->config['reparse_lock'])) {
$last_run = explode(' ', $this->config['reparse_lock']);
if ($last_run[0] + 3600 >= time()) {
return false;
}
}
if ($this->config[$this->reparser_name . '_cron_interval']) {
return $this->config[$this->reparser_name . '_last_cron'] < time() - $this->config[$this->reparser_name . '_cron_interval'];
}
return false;
}