How to clear the WordPress cache?

My website is loading style.css?ver=1.0.
style.css?ver=1.0 had different content to style.css?ver=1.1 or style.css, even after a hard refresh of style.css?ver=1.0.

Deleting the browser cache didn’t fix my problem.

Read More

Loading style.css?ver=1.0 in a different browser did.

After clearing the cache upto 10 to 12 times. The style.css will be ok. I want to get rid out of this method. And also css is minified. My CSS is not minified. I install the plugin BWP-minify and i deleted it after the problem started.

Related posts

1 comment

  1. During development, you could avoid the hassle of clearing the browser cache by passing a dynamic variable as the stylesheet’s version when you enqueue it. For instance, the current time.

    wp_enqueue_style( 'theme-style', 'style.css', array(), date("h:i:s") );

Comments are closed.