Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

disable php files caching for debugging

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.

like image 739
David Avatar asked Dec 31 '14 14:12

David


1 Answers

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

like image 91
David Avatar answered Oct 16 '22 15:10

David