• Resolved Sergey

    (@kuuuzya)


    Good afternoon. Which month I can not overcome the problem. I have disabled the setting to clear the cache when publishing. Moreover, I generally only have the mobile caching option enabled (I tried turning it off, it doesn’t help). But the plugin does not care about all the settings and resets the entire cache when publishing or updating a post.

    I have over 20,000 posts on my site and it’s just killer. Can you please tell me if there is any way to disable it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Sergey

    (@kuuuzya)

    I even tried WPLOCKDOWN mode. The same problem. Just press update button on any article and got deleted all the cache…

    Thread Starter Sergey

    (@kuuuzya)

    I use WordPress 6.3, plugin WP Super Cache 1.9.4

    Server: NGINX+mysql+php-fpm

    dimal

    (@dimalifragis)

    This is wierd. A suggestion: remove for a while WPSC and try some other caching plugin, like Fastest Cache (be carefull with the options). If you see the same issue, then something else is clearing your cache.

    @kuuuzya – I think another plugin is causing this problem, but it’s impossible for me to say which one.

    However, enable the debug log in WP Super Cache and update a post. You’ll see a bunch of lines, but you should only see logs related to deleting the cache for that post, the author archive, categories and tags archives and the front page cache. It starts with this, where X is the post_id of the post you just saved.

    wp_cache_post_edit: Clearing cache for post X on clean_post_cache 
    Post change: supercache enabled: deleting cache files in ABSPATH/wp-content/cache/supercache/example.com/

    In the logs is there any indication of the command that sets off deleting all the cached files? You might see the following, where X is a cached URL on your server:

    gc: deleted X, forced delete

    If it’s something like that, then look for the command prune_super_cache in your other plugins.

    Or look for wp_cache_clear_cache if you see the following in the logs:

    Clearing all cached files in wp_cache_clear_cache()

    Related GitHub issue, but I’m replying here until I can figure out whether it’s a bug in the plugin or not: https://github.com/Automattic/jetpack/issues/32418

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin clears cache when updating or publishing a post. Regardless of se’ is closed to new replies.