• Resolved zviera

    (@zviera)


    Hi there. Your plugin is great and visibly speeds up our website. But we have found out that our cron jobs (running using WP Cron) run much more often than originally set (we call external API during the cron job and this causes us to hit API limits). When we deactivated your APCu cache, the problem was solved.

    Do you know how to fix this? I see that you have a pro version which will enable “advanced object cache”, but I don’t know what this means and whether it would help. Didn’t find more info on your website either.

    Thank you for your help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author docjojo

    (@docjojo)

    Hi there,

    Thank you for reaching out — and I’m glad to hear the plugin is already speeding up your website!

    🧩 Root of the Issue

    What you’re experiencing with WP-Cron running too frequently is related to how WordPress handles scheduled tasks internally. WordPress stores cron schedules inside an option called 'cron', which is marked as autoload and loaded as part of a larger structure called 'alloptions'.

    When an object cache like APCu is active, WordPress will try to retrieve 'alloptions' from the cache. If the 'cron' key is missing or not stored correctly in the expected way, WordPress may assume it’s missing — and reschedule the task more aggressively than intended. That can easily lead to hitting external API rate limits or excessive task triggering.

    🔧 How We’re Fixing It

    We’ve identified this as a compatibility edge case, specific to APCu’s ability to cache the entire 'alloptions' structure — and we’re rolling out a fix to ensure the 'cron' key is never stored in persistent APCu storage, while still keeping it available in memory for the current request.

    This ensures WordPress gets 'cron' only once per request (as expected), and doesn’t mistakenly assume it’s missing — preserving correct task intervals and avoiding over-triggering.

    🚀 What is “Advanced Object Cache” (AOC)?

    The “Advanced Object Cache” (AOC) mode, included in the PRO version, adds deep integration with WordPress internals — including:

    • Optimized handling of serialized options
    • Smart exclusion of sensitive keys (like 'cron')
    • Compatibility with mixed caching environments

    This mode is built for performance and correctness — avoiding exactly the kind of issue you’ve encountered.

    We’re finalizing and testing this fix now and will push an update shortly.

    Thanks again for your feedback — you helped uncover a real edge case!

    Best regards,
    Chris
    ATEC Plugins

    Thread Starter zviera

    (@zviera)

    Hi! Thanks! I am glad I could help.

    I will wait for the new version of your plugin and then I will report back.

    Thanks again. Best regards!

    Plugin Author docjojo

    (@docjojo)

    Are you using the version from WP directory or from our site?

    We are still working on it.

    Thread Starter zviera

    (@zviera)

    From WP 🙂

    Thread Starter zviera

    (@zviera)

    Hi Chris,

    how is it going with the update? I see you have marked this as resolved, but there hasn’t been an update yet, so I guess the issue still persists.

    Thank you.

    Plugin Author docjojo

    (@docjojo)

    We are handling “cron” now, by removing it from persistent cache but we are not done with testing.
    If you are willing to beta test please send a message from our homepage and we can send you the new version.

    Thread Starter zviera

    (@zviera)

    Done 🙂

    Plugin Author docjojo

    (@docjojo)

    Did not receive anything?

    Plugin Author docjojo

    (@docjojo)

    You sound like an advanced user – so could I just send object-cache.php and you disable cache apcu plugin for testing?

    Thread Starter zviera

    (@zviera)

    Hi. I have sent a message through this form yesterday: https://atecplugins.com/contact/. Anyway, you can just send the file/s to this email: main.beach50932@fastmail.com

    Sure, I see a file object-cache.php inside your plugin. I can replace it. Not sure what you mean by disabling the whole plugin though.

    Thanks.

    Plugin Author docjojo

    (@docjojo)

    Received your msg.

    Plugin Author docjojo

    (@docjojo)

    New version is available, please update and let me know.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Using APCu cache causes duplicated cron runs’ is closed to new replies.