Home >Backend Development >PHP Problem >php modified the content unchanged

php modified the content unchanged

尚
Original
2019-10-29 11:05:014071browse

php modified the content unchanged

Sometimes when we modify the PHP code, it cannot take effect. Modifying the PHP code does not take effect immediately. It will take effect after restarting the php-fpm service!

Recommended: php server

We can solve the problem by modifying the PHP configuration file:

[Zend Opcache]
zend_extension=opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
;opcache end
 
;xcache
;xcache end

Modify the following code to solve the problem:

opcache.revalidate_freq=1

The above is the detailed content of php modified the content unchanged. 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