Home > Article > Backend Development > How to disable caching in php7
How to disable caching in php7: 1. Find the php.ini file in the installation directory; 2. Modify "opcache.enable=1 opcache.enable_cli=1"; 3. Restart the service.
The operating environment of this article: Windows7 system, PHP7.1 version, DELL G3 computer
How to disable caching in php7?
php7 Turn off the cache and disable the cache
Find the php.ini file in the installation directory
For example, /usr/local/php7 /etc/php.ini
Change the 1 to 0 in the following two lines:
[opcache] ; Determines if Zend OPCache is enabled opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP opcache.enable_cli=1
Restart the service:
service php-fpm restart
Recommended learning: "PHP Video Tutorial》
The above is the detailed content of How to disable caching in php7. For more information, please follow other related articles on the PHP Chinese website!