Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
228 views
in Technique[技术] by (71.8m points)

.htaccess - How to completely disable HTML cache for wordpress website?

I'm working on an website for a customer that receives API data from a few sources and displays them. This data should be constantly updated, and it's updated every 40 seconds (It would be less if not by API limits).

Another developer was hired to make the site faster, and he installed WP Rocket cache plugin to make the website faster.

Then the website started showing old data and cache instead of fresh new information, and now, even after clearing plugin cache, disabling the plugin and changing .htaccess to disable cache, it's displaying information from over a month ago, if you load or reload the page it shows old data, if you ctrl+f5 it shows fresh data, but if you load normally or refresh page without ctrl+f5, it'll show old data even after showing the new data.

I tried looking in the webhost CPanel and emptying the wp-content/cache folder, but nothing makes it forget that old cache, even on browsers that never accessed the site or private tabs.

What could be causing this cache anomaly?

question from:https://stackoverflow.com/questions/65945472/how-to-completely-disable-html-cache-for-wordpress-website

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...