YumYum Logo

Running your feed

This is probably what you installed YumYum for, to actually import & save your data! You've got two options when it comes to running your feed. You can either run it whenever you want via the CP or you can run it automatically with CRON/Laravel's scheduler.

On-demand via the Control Panel

  1. In your Feeds page in the Control Panel, find the feed you'd like to run.
  2. Click on the button at the end of the feed row, and click on the 'Run' option.
  3. Your feed will now be running, either on your request, or on the queue, depending on your site's configuration.

Automatically with the Laravel Scheduler

We're only going to cover the process of actually adding YumYum's command to the Laravel scheduler, not how to setup the scheduler on your server. You can learn about that over on the Laravel documentation.

  1. Open your app/Console/Kernel.php file.
  2. Add the below snippet to the schedule method of the Kernel.php file
1/**
2 * Define the application's command schedule.
3 *
4 * @param \Illuminate\Console\Scheduling\Schedule $schedule
5 * @return void
6 */
7protected function schedule(Schedule $schedule)
8{
9 // $schedule->command('inspire')
10 // ->hourly();
11 
12 $schedule->command('yumyum:run')
13 ->hourly();
14}

That snippet will run YumYum's importer every hour. You may wish to adjust the schedule on which it's run, for that you may view the Laravel documentation.