How to turn off the cache in php: first log in to the centos server; then enter the php configuration directory and use vim to open the configuration file; then view the configuration items and change all values from 1 to 0; finally restart php That’s it.
php method to close cache opcache
First we log in to the centos server
Then we Go to the php configuration directory and cd /usr/local/php/etc/php.d
Use vim to open the configuration file. vim 02-opcache.ini
goes in and we can see that the configuration item
changes all the values to 1 Just change them all to 0
# and then restart php. /bin/systemctl restart php-fpm.service
For more related knowledge, please visit PHP Chinese website!
The above is the detailed content of How to turn off caching opcache in php. For more information, please follow other related articles on the PHP Chinese website!