ini windows PHP opcache配置php.ini

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini windows PHP opcache配置php.ini相关的知识,希望对你有一定的参考价值。

[opcache]
;to dll
zend_extension=C:\Program Files\PHP\ext\php_opcache.dll
; Sets how much memory to use
opcache.memory_consumption=128

;Sets how much memory should be used by OPcache for storing internal strings 
;(e.g. classnames and the files they are contained in)
opcache.interned_strings_buffer=8

; The maximum number of files OPcache will cache
opcache.max_accelerated_files=4000

;How often (in seconds) to check file timestamps for changes to the shared
;memory storage allocation.
opcache.revalidate_freq=60

;If enabled, a fast shutdown sequence is used for the accelerated code
;The fast shutdown sequence doesn't free each allocated block, but lets
;the Zend Engine Memory Manager do the work.
opcache.fast_shutdown=1

;Enables the OPcache for the CLI version of PHP.
opcache.enable_cli=1

以上是关于ini windows PHP opcache配置php.ini的主要内容,如果未能解决你的问题,请参考以下文章

ini PHP-opcache-windows.ini之

Windows、XAMPP、PHP 7 和 opcache

PHP----------linux下安装opcache.

ini PHP 5.5.14上Magento的OpCache设置。将此文件存储为/etc/php.d/opcache.ini

php开启opcache

php5.5怎么开启opcache