[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);RecommendedOpcache.memory_c;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, and 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. Turning this command on will improve performance,;However, it can cause damage to existing applications.Opcache.use_cwd=0;turn on file timestamp validationOpcache.validate_timestamps=1;2s checking for file updates Note: 0 is always checked not off;Recommendedopcache.revalidate_freq=2;allow or disallow optimization of file searches 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 comments for 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;allows for the optimization of file presence (file_exists, etc.) to be overwritten. ;opcache.enable_file_override=0;define how many optimization processes to start;Opcache.optimizati/span>;Enabling this hack can temporarily resolve the "can ' t Redeclare class" error.;opcache.inherited_hack=1;Enabling this hack can temporarily resolve the "can ' t Redeclare class" error.;opcache.dups_fix=0;set non-cached blacklists;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 by the file size screen. All files are cached by default.;opcache.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 opened tightly in the development of debugging.;opcache.c/span>; How long to wait (in seconds) to schedule a restart after the cache is not accessed ; opcache.force_restart_timeout=180 ; error log file name. Leaving blank means using standard error output (stderr). ; opcache.error_log= ; write error messages to the server (Apache etc) Log ; opcache.log_verbosity_level=1 ; the preferred background for memory sharing. Leaving the system selected is left blank. ; opcache.preferred_memory_model= ; prevents accidental writes during script execution within a share, and is used only for internal debugging. ; opcache.protect_memory=0
The above describes the PHP optimization---opcache configuration instructions, including the aspects of the content, I hope the PHP tutorial interested in a friend helpful.