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(); }
public function processTrending() { #Used for testing the downloading of articles \p4\Libraries\RSSParser::processTrending(); }