• Resolved mr_fanatic

    (@mr_fanatic)


    Hi, what will be the best way to activate WordPress cron if your site has no hits or visits?

    Just starting out my new DAILY BIBLE QUOTE blog and I have no hits yet. I have scheduled a post to published “once every day at 6:00 AM”. Since I have no hits I’m afraid the scheduled post will not get published, so i add cronjob on my shared cpanel hosting using the code below:

    0 6 * * * wget -O /dev/null --timeout=120 https://mysite.com/wp-cron.php?doing_wp_cron=true

    So my question is will the scheduled post gets published using the command above or querying only the site https://mysite.com/ is enough to do the job?
    OR
    Do i need to scheduled the post at 6:05AM and add crontab to run at 6:00AM ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Thread Starter mr_fanatic

    (@mr_fanatic)

    @macmanx, thanks for the info, i’ve read that plugin and the description says:
    When a visitor loads your site…, since i have no hits or visits i’m afraid the plugin will not work. Anyway i will give it a try ??

    You want the post to be waiting in the Queue before the cron task runs so you schedule the post before the time cron is set to run.

    That way the psuedo-cron will run and handle the scheduled post if you happen to get a hit else the cron will run and deal with it.

    That’s the way my ‘Catch Phrase Daily’ site works though my posts are set for after midnight and are automatically reposted/recycled via a plugin. Hasn’t missed a scheduled post since inception several years ago.

    Thread Starter mr_fanatic

    (@mr_fanatic)

    Thank you @jnashhawkins, i’ll schedule it before the cron ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Understanding WP Cron’ is closed to new replies.