LabelGrid Integrations

Cron Setup

WARNING:

  • LabelGrid Sync and Spotify (Pre)Save functionality require you to setup your custom CRON.

What is a Cron Job?

cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks.

Why do I need to manually configure a CRON?

Because WordPress has to work on all sort of different platforms, OS’s and configurations, it can’t rely that there will be a cronjob service on the server that can handle scheduled tasks. This is why WordPress developers have created a workaround – the wp-cron.php file in your main WordPress folder is executed every time someone loads a page. It then checks if there’s a scheduled task to be done and executes it if necessary.

To allow LabelGrid Tools to works at the fullest capacity and avoid issues you need to manually configure CRON. Not doing so could bring unexpected errors.

Cron settings could depends from your Hosting, in this Documentation we do refer on a cPanel Hosting case scenario.

 

CONFIGURE CRON SERVICE:

  1. Edit the file /wp-config.php. Add the line.
    define('DISABLE_WP_CRON', true);
  2. Setup a new Cron. Go to CPANEL -> Advanced -> Cron jobs and add a new Cron Task:
    wget -q -O - https://YOURDOMAIN.COM/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1

 

You need to replace YOURDOMAIN.COM with your actual domain name. The Cron jobs tool has some of the most common schedules preset, so you can just select Every minute from the common settings or use “*” symbol in all the fields.

 

Verify the CRON

We suggest to install a plugin such as Advanced Cron Manager to check that the Cron Jobs are executed correctly.

Was this helpful?