• Resolved sombrero610

    (@sombrero610)


    Hello.
    I have been using the plugin for a long time and as far as I noticed this problem started about two years ago.
    Problem: Yoast clears the site cache once a day, when I go to the admin panel. If I am not in the admin panel, the cache is not cleared.
    There have been a few topics with a similar problem already, so I waited for a solution, but there is still no solution.
    I have a question.
    In the file class-wpseo-utils.php I deleted these lines (411-425):

    	/**
    * Clears the WP or W3TC cache depending on which is used.
    *
    * @since 1.8.0
    *
    * @return void
    */
    public static function clear_cache() {
    if ( function_exists( 'w3tc_pgcache_flush' ) ) {
    w3tc_pgcache_flush();
    }
    elseif ( function_exists( 'wp_cache_clear_cache' ) ) {
    wp_cache_clear_cache();
    }
    }

    After that, the spontaneous cache removal stopped.
    These lines are responsible for clearing the cache by Yoast plugin, what is it for, is it clearing after changing the settings and updating the plugin?
    Is it possible to use the plugin without these lines and clear the cache manually when changing Yoast settings if necessary?
    I don’t see any other solutions to the problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support amboutwe

    (@amboutwe)

    The plugin clears cache during activation or deactivation, and after an update. This ensures the new plugin files, functions, and output are available without waiting for cache to clear.

    You are welcome to make changes and tailor the plugin to your needs. Please know that updating the plugin through the WordPress admin will overwrite the changes so you will need to re-apply the changes before you manually update the plugin.

    At this time, there are no developer filters available to disable the process. However, we have an open internal issue with our development team requesting a developer filter.

    Regarding possible impact of removing part of our code, we can’t give you a solid answer to your question as it depends on other factors. We recommend checking out WordPress Jobs, or WordPress Professional Network for development & consultancy. They’ll be able to check the impact of the change and provide advice specific to your setup.

    Thread Starter sombrero610

    (@sombrero610)

    It would be great if you can fix this problem. I really like your plugin, please note the incompatibility with caching plugins.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Yoast + Wp Super Cache, plugin constantly clears the cache’ is closed to new replies.