/** * Set cache timestamp * * @return void */ public function onRun() { $this->cached_at = Settings::get('cached_at', 0); }
/** * Clear the cache * * @return void */ public function onClear() { Settings::set('cached_at', time()); Flash::success('Front-end caching has been reset.'); }