Home  >  Article  >  Backend Development  >  How to disable caching in php7

How to disable caching in php7

藏色散人
藏色散人Original
2022-01-21 11:09:032340browse

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.

How to disable caching in php7

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn