Home>Article>Backend Development> How to turn off caching opcache in php

How to turn off caching opcache in php

藏色散人
藏色散人 Original
2020-07-07 09:34:30 5003browse

How to turn off the cache in php: first log in to the centos server; then enter the php configuration directory and use vim to open the configuration file; then view the configuration items and change all values from 1 to 0; finally restart php That’s it.

How to turn off caching opcache in php

php method to close cache opcache

First we log in to the centos server

Then we Go to the php configuration directory and cd /usr/local/php/etc/php.d

How to turn off caching opcache in php

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

How to turn off caching opcache in php

goes in and we can see that the configuration item

How to turn off caching opcache in php

changes all the values to 1 Just change them all to 0

How to turn off caching opcache in php

# and then restart php. /bin/systemctl restart php-fpm.service

How to turn off caching opcache in php

For more related knowledge, please visitPHP Chinese website!

The above is the detailed content of How to turn off caching opcache in php. 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