Exemplo n.º 1
0
 protected function schedule(Schedule $schedule)
 {
     // $schedule->command('inspire')
     //          ->hourly();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::processFeeds();
     })->hourly();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::updateTagScores();
     })->daily();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::removeOldArticles(env('ARTICLE_KEEP_DAYS', 90));
     })->weekly();
     $schedule->call(function () {
         // Process the Feeds
         \p4\Libraries\RSSParser::processTrending();
     })->daily();
 }