650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/09/wKioL1R2hbiALiBKAAPXSMfb9z8285.jpg "title=" 1.png " alt= "Wkiol1r2hbialibkaapxsmfb9z8285.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/M00/54/09/ Wkiol1r2hlftd15iaai_4s1eh_i550.jpg "title=" 2.png "alt=" Wkiol1r2hlftd15iaai_4s1eh_i550.jpg "/>
This is a short description of the configuration directives.
opcache.enable
Boolean
Enable opcode caching. If this option is disabled, the code is not optimized and cached. Using the ini_set () function at run time can only disable opcache.enable settings, and this setting cannot be enabled. If you try to enable this setting in the script, a warning is generated.
opcache.enable_cli
Boolean
The opcode cache is enabled only for CLI versions of PHP. It is usually used for testing and debugging.
opcache.memory_consumption
integer
The shared memory size of the Opcache, in megabytes.
opcache.interned_strings_buffer
integer
The memory size, in megabytes, used to store the temporary string. This configuration directive is ignored by versions prior to PHP 5.3.0.
opcache.max_accelerated_files
integer
Opcache the maximum number of script files that can be stored in a hash table. The true value is the first prime number found in the mass set {223, 463, 983, 1979, 3907, 7963, 16229, 32531, 65407, 130987} than the set value. The value range for setting values is between 200 and 100000.
opcache.max_wasted_percentage
integer
The upper limit of wasted memory, in percent. If this limit is reached, then the Opcache will generate a restart-renewal event.
opcache.use_cwd
Boolean
If enabled, Opcache will append the script's working directory after the hash table's script key to avoid the problem of scripting conflicts of the same name. Disabling this option can improve performance, but may cause your app to crash.
opcache.validate_timestamps
Boolean
If enabled, the Opcache will check if the script is updated every opcache.revalidate_freq set number of seconds. If you disable this option, you must manually reset the Opcache using the opcache_reset () or opcache_invalidate () function, or you can make the file system changes take effect by restarting the WEB server.
opcache.revalidate_freq
integer
Checks whether the script timestamp has an updated period, in seconds. Setting to 0 causes Opcache to check for script updates for each request.
If the Opcache.validate_timestamps configuration directive is set to disabled, then this setting item will be ignored.
opcache.revalidate_path
Boolean
If this option is disabled, cached files that already exist in the same include_path are reused. Therefore, you cannot find a file with the same name that is not in the containing path.
opcache.save_comments
Boolean
If disabled, the comment content in the script file will not be included in the opcode cache file, which can effectively reduce the volume of the optimized file. Disabling this configuration directive may cause some apps or frameworks that rely on annotations or annotations not to work correctly, such as: Doctrine, Zend framework 2, and PHPUnit.
opcache.load_comments
Boolean
If disabled, the comment content is not loaded even if the file contains comments. This option can be used with opcache.save_comments to load annotation content on demand.
opcache.fast_shutdown
Boolean
If enabled, a quick Stop renewal event is used. The so-called fast stop-and-resume event refers to the memory management module that relies on the Zend engine to release the memory of all request variables at once, rather than releasing each allocated block of memory in turn.
opcache.enable_file_override
Boolean
If enabled, the opcode cache is checked when the function file_exists (), is_file () , and is_readable () are called, regardless of whether the file has been cached. This can improve performance if the app includes features that check the existence and readability of PHP scripts. However, if the Opcache.validate_timestamps option is disabled, there may be a risk of returning stale data.
opcache.optimization_level
integer
The bits mask that controls the level of optimization.
opcache.inherited_hack
Boolean
In versions prior to PHP 5.3, Opcache stored the code with the Declare_class opcode to implement the inherited location. When the file is loaded, Opcache attempts to bind the inherited class using the current environment. Because the Declare_class opcode may not be required in the current script, it may not work if such a script requires that the corresponding opcode be defined.
In PHP 5.3 and later, this configuration instruction is ignored.
opcache.dups_fix
Boolean
Only as a solution for "non-redefined class" errors.
opcache.blacklist_filename
string
Opcache The blacklist file location. The blacklist file is a text file that contains a file name that is not pre-compiled for optimization, one file name per line. Filenames in the blacklist can use wildcards, or they can use a prefix. Lines beginning with a semicolon (;) in this file are treated as comments.
A simple blacklist file may resemble the following:
; Adding specific files to the blacklist/var/www/broken.php; The file that starts with the character x file/var/www/x; Wildcard Match/var/www/*-broken.php
opcache.max_file_size
integer
The maximum file size for the cache in bytes. A setting of 0 means that all files are cached.
opcache.consistency_checks
integer
If the value is non-0, Opcache will check the cache checksum every N times. N is the setting value for this configuration directive. Because this option has a significant impact on performance, use it in the debug environment.
opcache.force_restart_timeout
integer
If the cache is inactive, wait a few seconds and then schedule the restart. If the set time is exceeded, the Opcache module will kill the process that holds the cache lock and reboot.
If the option Opcache.log_verbosity_level is set to a value of 3 or more than 3, an error message is logged in the log when a restart occurs.
opcache.error_log
string
Error log file for the Opcache module. If left blank, it is treated as stderrand the error log is sent to the standard error output (usually the WEB server's error log file).
opcache.log_verbosity_level
integer
The log level of the Opcache module. By default, only logs with the fatal level (0) and error level (1) are logged. Other available levels are: Warning (2), Information (3), and Debugging (4).
opcache.preferred_memory_model
string
Opcache the preferred memory module. If left blank, Opcache will select the applicable module and, typically, automatically select to meet the requirements.
Optional values include: mmap,shm, POSIX , and Win32.
opcache.protect_memory
Boolean
Protect shared memory to avoid unintended writes when script execution occurs. For internal debugging only.
opcache.mmap_base
string
The base address of the shared memory segment on the Windows platform. All PHP processes map shared memory to the same address space. Use this configuration directive to avoid "unable to reattach to base address" errors.
This article is from "Smile_ Youth" blog, please be sure to keep this source http://smileyouth.blog.51cto.com/7273768/1583079