예제 #1
0
 /**
  * Define the application's command schedule.
  *
  * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
  * @return void
  */
 protected function schedule(Schedule $schedule)
 {
     $schedule->call(function () {
         Spiders\HomeSpider::updateCache();
         Spiders\CinemaSpider::updateCache();
         Spiders\CinemaKidsSpider::updateCache();
         Spiders\CinemaPremiereSpider::updateCache();
         Spiders\TheatreSpider::updateCache();
         Spiders\PricesSpider::updateCache();
     })->everyTenMinutes();
 }