Setting up a cron job for WP Rocket on Siteground Hosting
STEP 1
If you want to create a real Cron job, first you need to disable WP Cron, so is not executed every time someone loads one of your pages. To disable it, open the wp-config.php file in your main WordPress folder and add the following line before the “/* That’s all, stop editing! Happy blogging. */” line:
define(‘DISABLE_WP_CRON’, true);
STEP 2
Add a Cron job entry through your web hosting control panel.
See screen grabs below DEVS > Cron Jobs
You can set the job to run every 5 minutes.
5 minutes equals
*/5****
Please replace yourdomain.com with your actual domain:
wget -q -O – https://yourdomain.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
DONE!
Contact Us Today
It costs nothing to contact us – we could save you time and money.


