Daily cron bug?

Discussion in 'Troubleshooting' started by dotend, Jul 8, 2007.

  1. dotend

    dotend New Member

    Joined:
    Mar 26, 2007
    Messages:
    11
    I've created a function in site.inc.php and hooked it to 'daily' to be run once a day. It sends an email summary of new subscriptions for the day. The problem is, I'm receiving two every day, one at 00:00:02 and then another at 01:00:02 then it's fine until the next day. Is there a known issue with the 'daily' cron hook?

    I'm running 3.0.8PRO on gentoo linux with PHP 4.4.4
  2. dotend

    dotend New Member

    Joined:
    Mar 26, 2007
    Messages:
    11
    SOLVED: Daily cron bug?

    I figured it out. My database server was running a few minutes slower than my web server. Apparently $db->save_cron_time() saves a timestamp relative to the database, not the web server. If the machines are not in sync, you'll get strange results.

    I wish I had access to the $db functions, I might have figured this out sooner.

Share This Page