Custom .css style not updating after changes are made

I am using a custom CSS style, which I am loading with wp_enqueue_style – check the following code:

wp_enqueue_style(‘style.css’, ‘/wp-content/themes/mytheme/css/style.css’, false ,rand(111,9999), ‘all’ );

I even tried to specific a random version (as seen in the 4th parameter), but it still doesn’t work. I have to wait aprox 15 minutes for my styles to update.

I tried clearing the cache, hard reloading, everything. I do not use any cache service nor plugin.

My only “workaround” is to use three different browsers and somehow lower the waiting interval from 15 minutes to 5. But it is still pain.

What could be the cause?

Read more here:: Custom .css style not updating after changes are made

Leave a Reply

Your email address will not be published. Required fields are marked *