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

How to disable caching in php7

藏色散人
Release: 2023-02-18 10:06:01
Original
2348 people have browsed it

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
Copy after login

Restart the service:

service php-fpm restart
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template