Support » Fixing WordPress » wp-cron performed hourly instead of daily

  • Resolved Kermit524

    (@kermit524)


    Hi,
    I have set a daily wp-cron job to send an email message once a day. A couple of days ago, is started going mad. Instead of getting one email a day, I started getting an email every 2-3 minutes – the same message is being sent again and again. I didn’t make any changes on this plugin and I have now idea how to even start debugging this. Any idea on how should I tackle this?
    Many thanks in advance for any advice,
    Michal

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Kermit524

    (@kermit524)

    Further on this issue: Is there a way to verify that an event cannot be fired more than once daily, even if the hook is fired?
    For instance if, in the function that is fired up – I would be able to set a condition, that the mail is sent only if it was not already sent today?

    I have found this function: wp_schedule_single_event but I am not sure I understand what it means exactly.

    Thanks again!

    Thread Starter Kermit524

    (@kermit524)

    Sorry – false alarm – my bad!! I had the scheduled function called directly on one of the website pages, and obviously it was fired off every time that page was visited… That’s what happend when you forget to remove your debug trace… :-\

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp-cron performed hourly instead of daily’ is closed to new replies.