Support » Plugin: APCu Object Cache Backend » Caching on cron

  • Yello,

    please skip caching when DOING_CRON, scheduled events may not run.
    Also, I’ve removed the nag if APC is not installed by wrapping the whole thing with if clause.

    Wrap the whole object-cache.php content with such if:
    if (function_exists('apcu_fetch') && (!defined('DOING_CRON') || !DOING_CRON)) { ... }

    https://wordpress.org/plugins/apcu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, tmuikku
    I have the same problem. Unfortunately, I can not take your clue.
    I am very far from programming 🙂
    Maybe you have corrected object-cache.php file?

    The author, sadly, is not going to solve this problem…

    Hi,
    put the if clause (everything up until and including the opening bracket { ) at the beginning of the file, after the php open tag <?php. And then the ending bracket } to the end of the file (before php ending tag ?> if there is one).

    Basically all the code in the file should be in place of the three dots in my example.

    Thanks, tmuikku!
    All works fine 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Caching on cron’ is closed to new replies.