• Resolved ltdev

    (@ltdev)


    I have wordpress installed without any caching plugins.

    On the same server I have some other apps that save some data and session data to APCu user cache.

    I was having a problem where the cache was being flushed at apparently random intervals. After some testing I came to the conclusion that it seems to be wordpress that’s reseting the cache.

    Either navigating the admin area or just leaving the admin area open, my cache gets emptied everytime wordpress makes a request to the server. Either directly or through a wp-admin/admin-ajax.php (heartbeat?) request.

    I have no idea why this could be happening. I’m not too familiar with wordpress but I always assumed that it wouldn’t use any type of cache unless explicitly set? Anyway, everytime I load a page, my APCu uptime goes to 0 and I lose all cached variables and sessions on my other app.

    My server details are:
    Wordpress 4.4.1
    APCu Version 4.0.7
    PHP Version 5.6.17-0+deb8u1
    Server Software nginx/1.6.2

    Any advice or insight would be greatly appreciated.

    Thank you.

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

    (@ltdev)

    Replying to my own post.

    I further traced this issue to the plugin “better-wp-security” (iThemes security).

    This plugin calls apc_clear_cache() on two different occasions and this was causing our issues. On APCu this seems to clear the entire user cache. (which makes sense as APCu no longer has opcode cache)

    I’ve posted this bug on the plugins’ support forum.

    Thanks.

    This hint that the problem could be inside WP
    and not in the OS was enough for me to solve my problem.

    In my case, it was some other plugin.

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

The topic ‘Admin area resets APCu cache’ is closed to new replies.