Hello all,
I have a problem when I make a change to a template file such as "header.php". When I make a change and upload it, I re-visit the site and refresh, and the change is not made. I even cleared the cache, still no. But if I come back to it a day or two later, then the change is shown. Why is this? I need to be able to see changes in real time. ANy solutions?
You might be behind a caching proxy server. Are you working on your template from a school or work.
No, I am working out of my house. I have no server, just my PC connected straight to the internet.
Your isp might be running the caching server. It's not uncommon still annoying though. My only suggestion is that you could install wordpress localy work on any changes then upload those files once you get it the way you want it.
It's strange because I don't have this issue on other websites. It's only when I am working with a WordPress site.
That is indeed strange. Who is your host. It could very well be an issue with them.
Do you have wp-cache or wp-advanced cache turned on in the plugins section.
WP-Cache is turned off and I don't have wp-advanced.
This only happens with template files. The CSS file is updating perfectly fine. Too weird and completely annoying.
I think I found out what the problem was. I double checked the plugins and saw that WP-Cache was NOT active, BUT there is a file called "wp-cache-config.php" in my theme folder. It's definitely this file that is causing the problem. I don't know what it does, but I changed the "$cache_max_time" variable to 1 second as a test to see what happens because it was set to 1 hour. So I guess it would take a full hour to see the change cause Worpress is keeping a cached version of the files. Since I made the change, the updates now happen right away. I guess I will have to change this back to it's original setting once it is all done.
Is anyone familiar with that file and what it does?