Question

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

Posted December 11, 2017 1.8k views
ApacheCaching

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?

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.

×
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

Submit an Answer