disable php files caching for debugging

折月煮酒 提交于 2021-02-07 18:20:28

问题


I have a vps with zpanel installed and apache2 - php - mysql.

I'm developing a small backend for a website in php, for sites ready to publish the situation is perfect, but now I need to disable the server feature that caches php files to test instantly the correct (last modified version) of my php files. This is because while html and js files, when edited, are reloaded correctly immediately, with php I have a long wait before it updates or I have to restart the server.

I tried to open php.ini and look for "cache" and set to "1" millisecond almost all the values with no luck. what could I try?

P.S. it's not a browser cache problem, that's a server side problem.


回答1:


Solved: inside php.ini I added a line with

apc.enabled=0

after that I restarted apache2 and now php files are updated istantly as they should

thanks for the suggestion to look into phpinfo



来源:https://stackoverflow.com/questions/27722592/disable-php-files-caching-for-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!