Cornerstone Style Cache

Hi @charlie

Prompted by the recent .point release of Pro, I had an issue that only seems to be resolved by clearing the Pro Style Cache (Under Cornerstone settings)

I am using ManageWP to run my plugin/theme updates etc, and have snippets I can run to clear the various caches such as Breeze and Cloudflare. What I can’t seem to do is create a snippet that does the same thing as the Style Cache clear button. This means I need to log in to numerous sites, manually clear the css cache before clearing normal cache.

On some sites, seems to be background images or video, doing a Pro theme update breaks those element until I clear the css cache. it would be handy to have a script that I could run to do that remotely. is that something you can advise/help with please?

Best wishes

Scot

Try the following snippet to clear the Style Cache. The action you want to trigger is cs_purge_tmp. Let me know if that helps. Have a great weekend.

add_action('init', function() {
  do_action('cs_purge_tmp');
});