tidy(); } /** * Returns whether this cron task can run, given current board configuration. */ public function is_runnable() { global $cache; return method_exists($cache, 'tidy'); } /** * Returns whether this cron task should run now, because enough time * has passed since it was last run. */ public function should_run() { global $config; return $config['cache_last_gc'] < time() - $config['cache_gc']; } }