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

December 11, 2017 1.7k views
Apache Caching

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?

1 Answer

Hello,

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

Have another answer? Share your knowledge.

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