Home >Backend Development >PHP Problem >How to turn off cache in php.ini
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.
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
[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!