Server-side caching? CSS files fine... PHP files not

I’m updating some files on my server – I’m using PHP, HTML, CSS etc. The CSS seems to be updating when I replace them on my server but the .inc/.php files aren’t. I have checked their contents on the server and they are showing the updated content.

I have checked this on a phone on a different network, in case it was DNS/ISP caching but it’s the same issue.

Is there any caching that comes with DO? I am using the one-click LAMP install. I’ve never had this issue on other servers before… only encountered it on DO.

Any thoughts?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


This could be due to some PHP modules like OpCache or APCu. I would recommend flushing those caches and testing it again, or maybe running a quick Apache restart could help as well.

Regards, Bobby