[opcache]zend_extension = "G:/php/php-5.5.6-win32-vc11-x64/ext/php_opcache.dll"; Zend Optimizer + switch, code is no longer optimized when off. opcache.enable=1; Determines if Zend Opcache is enabled for the CLI version of Phpopcache.enable_cli=1; Zend Optimizer + Shared memory size, how many precompiled PHP code can be stored in total (MB); Recommended 128opcache.memory_consumption=64; Zend Optimizer + The total memory of the string in the staging pool. (unit: MB); Recommended 8opcache.interned_strings_buffer=4; Maximum number of cached files between 200 and 100000; Recommended 4000opcache.max_accelerated_files=2000; Memory "Wasted" reaches the percentage corresponding to this value, a restart schedule is initiated. opcache.max_wasted_percentage=5; Open this command, Zend Optimizer + will automatically append the name of the current working directory to the script key; This eliminates key-value naming conflicts between files of the same name. Closing this command will improve performance; However, it can cause damage to existing applications. Opcache.use_cwd=0; Open file timestamp verification Opcache.validate_timestamps=1; 2s Checking for file updates Note: 0 is always checked not off; Recommended 60opcache.revalidate_freq=2; Allow or prohibit the optimization of file search in include_path; opcache.revalidate_path=0; Whether to save comments on file/function if Apigen, Doctrine, ZF2, phpunit need file comment; Recommended 0opcache.save_comments=1; Whether to load the comments of the file/function; Opcache.load_comments=1; Turn on quick close, open this when PHP Request shutdown the memory will be increased; Recommended 1opcache.fast_shutdoWn=1 the optimization feature that allows overwriting of file presence (file_exists, etc.). ; opcache.enable_file_override=0; Define how many optimization processes to start; opcache.optimization_level=0xffffffff; Enabling this hack can temporarily resolve the "can ' t Redeclare class" error.; o pcache.inherited_hack=1; Enabling this hack can temporarily resolve the "can ' t Redeclare class" error.; o pcache.dups_fix=0; Set a blacklist that does not cache; PHP files beginning with cache_ in the specified directory are not cached. /png/www/example.com/public_html/cache/cache_; opcache.blacklist_filename=; The cache of large files is removed through the file size screen. By default, all files are cached.; o pcache.max_file_size=0; Check cache checksum once per N requests. The default value of 0 indicates that the check is disabled.; Due to the calculation of the checksum lossy performance, this directive should be tightly opened at the time of development debugging. O pcache.consistency_checks=0; When the cache is not accessed, the wait time (in seconds) for the scheduled restart; opcache.force_restart_timeout=180; The error log file name. Empty indicates the use of standard error output (stderr).; o pcache.error_log=; Write error message to server (Apache etc) log; opcache.log_verbosity_level=1; The preferred background for memory sharing. Leave blank to let the system choose.; o pcache.preferred_memory_model=; Prevent accidental writes during script execution within a share, for internal debugging only.; o Pcache.protect_memory=0
PHP Optimization---Configuration instructions for Opcache