How to turn off cache in php.ini

藏色散人
Release: 2023-03-08 17:50:02
Original
2463 people have browsed it

How to turn off the cache in php.ini: 1. Find and open the php.ini configuration file; 2. Find the "opcache.enable" and "opcache.enable_cli" options and modify them to "opcache.enable= 0" and "opcache.enable_cli=0"; 3. Save the modified file.

How to turn off cache in php.ini

The operating environment of this article: windows7 system, PHP8 version, DELL G3 computer

php cache is turned off

Cache opcode instead of recompiling every time, thereby reducing CPU and memory overhead

php.ini configuration file

opcache cached results Unable to return in real time

zend_extension=opcache opcache.enable=0 //关闭缓存 opcache.enable_cli=0 //关闭缓存 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_accelerated_files=10000 opcache.max_wasted_percentage=5 opcache.revalidate_freq=60 opcache.use_cwd=1 opcache.validate_timestamps=1 opcache.save_comments=1 opcache.enable_file_override=Off opcache.fast_shutdown=1 opcache.mmap_base=0x20000000
Copy after login

[Recommended learning: "PHP Video Tutorial"]

The above is the detailed content of How to turn off cache in php.ini. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!