Home > Backend Development > PHP Problem > How to turn off php cache

How to turn off php cache

王林
Release: 2023-03-11 10:12:01
Original
3388 people have browsed it

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.

How to turn off php cache

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

How to turn off php cache

Use vim to open the configuration file. vim 02-opcache.ini

Go in and we can see the configuration items

How to turn off php cache

Just change all the values ​​​​of 1 to 0

How to turn off php cache

Then restart php. /bin/systemctl restart php-fpm.service

How to turn off php cache

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!

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