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