Cache not always cleared | WordPress.org

[ad_1]

Divi site, if this makes any difference, with Static CSS Files disabled.

I have WP Fastest Cache configured to clear all of its caches whenever a plugin or theme is updated. I also have an action that runs autoptimizeCache::clearall( false ); when this happens.

However, it seems like the AO cache isn’t being cleared properly, and I often get script errors after updates. Adding ?ao_noptimize=1 to the URL produces a clean page with no issues, so this must be related to combination/minification.

So I’ve been going to the site, clearing the Divi static file cache and then AO and WPFC caches, but this hasn’t always worked.

This thread gave me the idea that this might be due to the admin bar AJAX clearing not working properly, and reminded me that things seemed to work whenever I changed or disabled JS optimisation options and then simply reverted them, clearing the cache from the AO settings page.

I’m not seeing any error messages, but I suspect that the admin bar function isn’t clearing the JS/CSS cache, and that triggering the action from WPFC isn’t working either.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer