• Resolved timyc

    (@timyc)


    I turned Object Cache on but whenever I set Cache WP-Admin to On, the site cron seems to have a huge delay. wp-cron is being run through an actual cronjob on the machine. I’m using Redis.

    This is a code snippet that’s set to run every x minutes

    if(!get_transient('fetch_remote_value')){
       set_transient('fetch_remote_value', 1, 300);
       // do the fetching
       delete_transient('fetch_remote_value')
    }

    When Cache WP-Admin is Off, the task completes in around a minute and is ready to be run again. When Cache WP-Admin is On, the next run does not occur for at least 300 seconds.

    • This topic was modified 2 years, 10 months ago by timyc.
  • The topic ‘Cron Jobs are being delayed when Object Cache is on’ is closed to new replies.