My Page Won’t Update, How To Clear The Cache
One of the more frustrating parts of web/ software development is when you make an improvement to a site’s code but nothing changes with the runtime behavior of the script/ site. The most common reason for this is that your code is cached somewhere. This can happen on the server or the client. Make sure you clear all of your caches on the server and your browser to make sure you are running the latest code.
On wordpress, there may be a cache plugin installed, or the theme might have caching features enabled. Make sure to go the the cache management page and click clear cache.
In your browser, make sure you do a hard refresh by pressing ctrl+F5
One problem to consider is when your code is cached on the end users’ machines. Since we (usually) can’t ask them all to reset their caches, it’s usually best practice to cache the file name so the client machine will always download a new, fresh copy of the code.
For web developers a good trick is to have a version parameter at the end of the href for your scripts and stylesheets that you can increment when you want the users to grab a new copy of the file.