• Resolved wpmhweb

    (@wppit)


    I’ve been noticing that since updating 3.0.4 to 3.1.1.1 the plugin is failing to clear the cache, causing high CPU, memory, and disk usage breaking the database connection and then breaking the site.
    I had to disable the plugin to mitigate the issue.

    How can I fix this problem?
    Thanks,

    • This topic was modified 2 years, 3 months ago by wpmhweb.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hmm … How do you clear the cache?

    Thread Starter wpmhweb

    (@wppit)

    @optimizingmatters from the toolbar “Clear CSS\JS cache” button. It now takes a long time and fails. Because it was causing high resources, I disabled the plugin let the server to cool off, and then reenabled the plugin. However, this time I went to the autoptimize settings and cleared the cache using the save and clear cache button. So, it seems to be working for now, but this shouldn’t happen. Now, I’m even a little afraid of clearing the cache.

    • This reply was modified 2 years, 3 months ago by wpmhweb.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, so what you are experiencing seems to indicate that the cache size is growing bigger then it did before, so you might want to consider reconfiguring AO not to aggregate inline JS/ CSS (there were not changes regarding how the cache gets cleared in the last released).

    That being said; the toolbar clear cache is subject to a timeout (being AJAX) so indeed it will sooner run into issues if the cache is big(ger). What you could try (if you don’t want to reconfigure AO) is using this code snippet to force AO to use a different cache clearing mechanism which might well solve the timeout;

    add_filter( 'autoptimize_filter_cache_clear_advanced', '__return_true' );

    feel free to keep me posted! ??
    frank

    Thread Starter wpmhweb

    (@wppit)

    @optimizingmatters I’ll check this out. Thank you so much for your time.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You’re welcome, let me know if/ how this works for you ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I’ll close the topic as resolved, but feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘3.1.0 autoptimize fails to clear cache successfully breaking site’ is closed to new replies.