It would be great if WP Rocket offers a hook/function to clear out and fill all types of cache programmatically.
This can be used in some specific cases like:
- updating a plugin / theme / WordPress;
- changing a setting on a theme page;
Currently there’s functionality to clear and preload various types of WP Rocket, but I can’t seem to find the right order to do this in a correct way. Most of the time the preloading of page-caches or generating Unused CSS files is not working properly.
Why I’m also asking for a specific hook/function is because WP Rocket adds new functionality sometimes, like the Unused CSS. Such new features can then be hooked into this “clear and fill functionality” in the core instead developers having to add it in various themes/plugins.