Dynamic PHP Cache Knowledge
####################################################
PHP Pre-parsing exists in shared memory, open Opcache. php5.5 above configuration module can be
Ini:
[Opcache]
; Start opcode cache
Opcache.enable=1
; php boot opcode cache for CLI-supported versions is typically used for testing and debugging
Opcache.enable_cli=1
; Shared memory size in megabytes
opcache.memory_consumption=128
; Store temporary string cache size in mb,php5.3.0 previously ignored for this configuration
Opcache.interned_strings_buffer=8
; The maximum number of cache files, less than 100% hit rate, you can try to increase this value
opcache.max_accelerated_files=4000
; Check the file modification time within a certain time, here set the check time period, the default is 2, the unit is seconds
Opcache.revalidate_freq=60
; Turns on fast stop and resume events, relies on the memory management module of the Zend Engine, frees the memory of all request variables at once, instead of freeing the memory block in turn
Opcache.fast_shutdown=1
Enable the ability to check the existence and readability of PHP scripts, regardless of whether the file has been cached, will check the opcode cache, can improve performance. However, if the Opcache.validate_timestamps option is disabled, there may be a risk of returning stale data.
Opcache.enable_file_override=1
; Expand Library So file association load
Zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
####################################################
Dynamic PHP static architecture
PHP Script Pre-parsing