Cron Jobs not running on website with no traffic

HomeForumsGeneral Support – NOT for PTA plugins!Cron Jobs not running on website with no traffic

Viewing 3 reply threads
  • Author
    Posts
    • #11681
      Michael Hentrich
      Participant

      Hi. I read that the cron jobs for the reminder emails won’t run if there is no site traffic. My site doesn’t receive any traffic, so what can I do in this case?

    • #11683
      Stephen Sherrard
      Keymaster

      Your site probably gets more traffic than you think. Search engines and some spambots that load the pages will also trigger the WordPress CRON actions.

      Otherwise, the only way to make sure that the WordPress faux CRON functions actually get triggered at regular intervals is to disable the built-in WordPress CRON triggers, and instead run the WordPress CRON from a real server level CRON function that you set up to call the WordPress CRON function.

      Takes a bit of server knowledge, but Tom McFarlin spells out the issues and how to do it properly here:
      https://tommcfarlin.com/wordpress-cron-jobs/

      Since my plugin already schedules its own functions (for reminders), you can skip steps 1 & 2 in the second section on “Setup your Event code”.

    • #14502
      Haines ho
      Participant

      For those don’t want to cause problesm using WP Cron System, and don’t have adequate server Cron, try this WordPress plugin https://wordpress.org/plugins/easycron/.

    • #15158
      Stephen Sherrard
      Keymaster
Viewing 3 reply threads
  • The topic ‘Cron Jobs not running on website with no traffic’ is closed to new replies.