3

I've a problem with my WordPress website getting updated after I make changes to its code:

I'm using phpStorm with auto-save, running the website on WAMP, locally. Therefore, right after I right new code, the file in which I write the code in should be updated, and the website quickly after that.

Yet the website doesn't update.

I'm not using any cache plugins, and in my browser, Chrome, I disabled caching.

Also, it does get updated, but only after I make changes to the website - like disable and then enable again a plugin - so it can store new cache, but for some reason, it doesn't do it automatically, and keeps using old cache when I don't make any changes via the dashboard.

Why does this happen and how can I fix it?

10
  • Hi. You said you aren't using any cache plugin, but then you mentioned about storing a new cache.
    – Johansson
    Commented Apr 1, 2017 at 15:04
  • I meant that WordPress does that somehow. I haven't configured for it to do it, and I don't know of anything that I've done that could cause this behavior. Commented Apr 1, 2017 at 15:05
  • Have your searched your wp-content folder for any cache file/folder?
    – Johansson
    Commented Apr 1, 2017 at 15:08
  • I haven't. I'll check and update. Commented Apr 1, 2017 at 15:09
  • 1
    Well there is definitely some sort of caching going on. Either a plugin like JetPack, or a server-side cache. This article can be useful in your case.
    – Johansson
    Commented Apr 1, 2017 at 15:16

1 Answer 1

0

This is related to expire header. Try to add a time less than 180 seconds

ExpiresByType text/html "access plus 180 seconds"

either in server or htaccess.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.