PHP Script Pre-parsing

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.