105 lines
4.7 KiB
INI
105 lines
4.7 KiB
INI
; Load Zend OPache extension.
|
|
zend_extension=opcache.so
|
|
|
|
; Enables the opcode cache. When disabled, code is not optimised or cached.
|
|
; opcache.enable=1
|
|
|
|
; Enables the opcode cache for the CLI version of PHP.
|
|
; opcache.enable_cli=0
|
|
|
|
; The size of the shared memory storage used by OPcache, in megabytes.
|
|
; opcache.memory_consumption=128
|
|
|
|
; The amount of memory used to store interned strings, in megabytes. Available since PHP 5.3.0.
|
|
; opcache.interned_strings_buffer=8
|
|
|
|
; The maximum number of keys (and therefore scripts) in the OPcache hash table.
|
|
; Only numbers between 200 and 100000 are allowed.
|
|
; opcache.max_accelerated_files=4000
|
|
|
|
; The maximum percentage of wasted memory that is allowed before a restart is scheduled.
|
|
; opcache.max_wasted_percentage=5
|
|
|
|
; If enabled, OPcache appends the current working directory to the script key, thereby eliminating
|
|
; possible collisions between files with the same base name. Disabling this directive improves performance,
|
|
; but may break existing applications.
|
|
; opcache.use_cwd=1
|
|
|
|
; If enabled, OPcache will check for updated scripts every opcache.revalidate_freq seconds.
|
|
; When this directive is disabled, you must reset OPcache manually via opcache_reset(), opcache_invalidate()
|
|
; or by restarting the Web server for changes to the filesystem to take effect.
|
|
; opcache.validate_timestamps=1
|
|
|
|
; How often to check script timestamps for updates, in seconds. 0 will result in OPcache
|
|
; checking for updates on every request. This configuration directive is ignored if opcache.validate_timestamps
|
|
; is disabled.
|
|
; opcache.revalidate_freq=2
|
|
|
|
; If disabled, existing cached files using the same include_path will be reused. Thus, if a file with the same
|
|
; name is elsewhere in the include_path, it won't be found.
|
|
opcache.revalidate_path=1
|
|
|
|
; If disabled, all documentation comments will be discarded from the opcode cache to reduce the size of the optimised
|
|
; code. Disabling this configuration directive may break applications and frameworks that rely on comment parsing
|
|
; for annotations, including Doctrine, Zend Framework 2 and PHPUnit.
|
|
; opcache.save_comments=1
|
|
|
|
; If disabled, documentation comments won't be loaded from the opcode cache even if they exist. This can be used
|
|
; with opcache.save_comments to only load comments for applications that require them.
|
|
; opcache.load_comments=1
|
|
|
|
; If enabled, a fast shutdown sequence is used that doesn't free each allocated block, but relies on the Zend
|
|
; Engine memory manager to deallocate the entire set of request variables en masse.
|
|
; opcache.fast_shutdown=0
|
|
|
|
; When enabled, the opcode cache will be checked for whether a file has already been cached when file_exists(),
|
|
; is_file() and is_readable() are called. This may increase performance in applications that check the existence
|
|
; and readability of PHP scripts, but risks returning stale data if opcache.validate_timestamps is disabled.
|
|
; opcache.enable_file_override=0
|
|
|
|
; A bitmask that controls which optimisation passes are executed.
|
|
; opcache.optimization_level=0xffffffff
|
|
|
|
; This hack should only be enabled to work around "Cannot redeclare class" errors.
|
|
; opcache.dups_fix=0
|
|
|
|
; The location of the OPcache blacklist file. A blacklist file is a text file containing the names of files
|
|
; that should not be accelerated, one per line. Wildcards are allowed, and prefixes can also be provided. Lines
|
|
; starting with a semi-colon are ignored as comments.
|
|
; opcache.blacklist_filename=
|
|
|
|
;The maximum file size that will be cached, in bytes. If this is 0, all files will be cached.
|
|
; opcache.max_file_size=0
|
|
|
|
; If non-zero, OPcache will verify the cache checksum every N requests. This should only be enabled when
|
|
; debugging, as it will impair performance. "0" means that the checks are disabled.
|
|
; opcache.consistency_checks=0
|
|
|
|
; The length of time to wait for a scheduled restart to begin if the cache isn't active, in seconds.
|
|
; opcache.force_restart_timeout=180
|
|
|
|
; The error log for OPcache errors. An empty string is treated the same as stderr.
|
|
; opcache.error_log=
|
|
|
|
; The log verbosity level. By default, only fatal errors (level 0) and errors (level 1) are logged.
|
|
; Other levels available are warnings (level 2), information messages (level 3) and debug messages (level 4).
|
|
; opcache.log_verbosity_level=1
|
|
|
|
; The preferred memory model for OPcache to use. If left empty, OPcache will choose the most appropriate model.
|
|
; opcache.preferred_memory_model=
|
|
|
|
; Protects shared memory from unexpected writes while executing scripts. This is useful for internal debugging only.
|
|
; opcache.protect_memory=0
|
|
|
|
; cat /proc/meminfo
|
|
; HugePages_Total: 0
|
|
; HugePages_Free: 0
|
|
; HugePages_Rsvd: 0
|
|
; HugePages_Surp: 0
|
|
|
|
; Additional info:
|
|
; http://jpauli.github.io/2015/10/28/huge-page.html
|
|
|
|
; opcache.huge_code_pages=1
|
|
opcache.validate_permission=1
|