Stop Caching from Delaying WordPress Theme Changes
The tutorial I’m following uses Bootstrap 3.3.7, which I now realize is quite old. However, it’s still a good starting point for learning. Once I complete the tutorial, I’ll consider updating it to a newer Bootstrap version if time allows.
I also encountered caching issues while developing my custom theme—changes I made weren’t appearing on the live site. After some research, I discovered a temporary fix: disabling cache in development by replacing the stylesheet version number with time() when registering them in my theme.
wp_register_style("bootstrapcss", "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css", array(), time(), 'all');
Leave a Reply