Home > Article > Backend Development > How to turn off php cache
How to turn off the PHP cache: first enter the PHP configuration directory and open the configuration file; then find the opcache cache configuration item and change all values to 0; finally restart PHP.
The operating environment of this article: centos 7 system, php 7.3, thinkpad t480 computer.
First we log in to the centos server
Then we enter the php configuration directory, cd /usr/local/php/etc/php.d
Use vim to open the configuration file. vim 02-opcache.ini
Go in and we can see the configuration items
Just change all the values of 1 to 0
Then restart php. /bin/systemctl restart php-fpm.service
Related video tutorial sharing: php video tutorial
The above is the detailed content of How to turn off php cache. For more information, please follow other related articles on the PHP Chinese website!