Blame SOURCES/10-opcache.ini

a247fe
; Enable Zend OPcache extension module
a247fe
zend_extension=opcache
a247fe
a247fe
; Determines if Zend OPCache is enabled
a247fe
opcache.enable=1
a247fe
a247fe
; Determines if Zend OPCache is enabled for the CLI version of PHP
a247fe
;opcache.enable_cli=0
a247fe
a247fe
; The OPcache shared memory storage size.
a247fe
opcache.memory_consumption=128
a247fe
a247fe
; The amount of memory for interned strings in Mbytes.
a247fe
opcache.interned_strings_buffer=8
a247fe
a247fe
; The maximum number of keys (scripts) in the OPcache hash table.
a247fe
; Only numbers between 200 and 1000000 are allowed.
a247fe
opcache.max_accelerated_files=4000
a247fe
a247fe
; The maximum percentage of "wasted" memory until a restart is scheduled.
a247fe
;opcache.max_wasted_percentage=5
a247fe
a247fe
; When this directive is enabled, the OPcache appends the current working
a247fe
; directory to the script key, thus eliminating possible collisions between
a247fe
; files with the same name (basename). Disabling the directive improves
a247fe
; performance, but may break existing applications.
a247fe
;opcache.use_cwd=1
a247fe
a247fe
; When disabled, you must reset the OPcache manually or restart the
a247fe
; webserver for changes to the filesystem to take effect.
a247fe
;opcache.validate_timestamps=1
a247fe
a247fe
; How often (in seconds) to check file timestamps for changes to the shared
a247fe
; memory storage allocation. ("1" means validate once per second, but only
a247fe
; once per request. "0" means always validate)
a247fe
;opcache.revalidate_freq=2
a247fe
a247fe
; Enables or disables file search in include_path optimization
a247fe
;opcache.revalidate_path=0
a247fe
a247fe
; If disabled, all PHPDoc comments are dropped from the code to reduce the
a247fe
; size of the optimized code.
a247fe
;opcache.save_comments=1
a247fe
a247fe
; If enabled, a fast shutdown sequence is used for the accelerated code
a247fe
; Depending on the used Memory Manager this may cause some incompatibilities.
a247fe
;opcache.fast_shutdown=0
a247fe
a247fe
; Allow file existence override (file_exists, etc.) performance feature.
a247fe
;opcache.enable_file_override=0
a247fe
a247fe
; A bitmask, where each bit enables or disables the appropriate OPcache
a247fe
; passes
a247fe
;opcache.optimization_level=0xffffffff
a247fe
a247fe
;opcache.inherited_hack=1
a247fe
;opcache.dups_fix=0
a247fe
a247fe
; The location of the OPcache blacklist file (wildcards allowed).
a247fe
; Each OPcache blacklist file is a text file that holds the names of files
a247fe
; that should not be accelerated.
a247fe
opcache.blacklist_filename=/etc/php.d/opcache*.blacklist
a247fe
a247fe
; Allows exclusion of large files from being cached. By default all files
a247fe
; are cached.
a247fe
;opcache.max_file_size=0
a247fe
a247fe
; Check the cache checksum each N requests.
a247fe
; The default value of "0" means that the checks are disabled.
a247fe
;opcache.consistency_checks=0
a247fe
a247fe
; How long to wait (in seconds) for a scheduled restart to begin if the cache
a247fe
; is not being accessed.
a247fe
;opcache.force_restart_timeout=180
a247fe
a247fe
; OPcache error_log file name. Empty string assumes "stderr".
a247fe
;opcache.error_log=
a247fe
a247fe
; All OPcache errors go to the Web server log.
a247fe
; By default, only fatal errors (level 0) or errors (level 1) are logged.
a247fe
; You can also enable warnings (level 2), info messages (level 3) or
a247fe
; debug messages (level 4).
a247fe
;opcache.log_verbosity_level=1
a247fe
a247fe
; Preferred Shared Memory back-end. Leave empty and let the system decide.
a247fe
;opcache.preferred_memory_model=
a247fe
a247fe
; Protect the shared memory from unexpected writing during script execution.
a247fe
; Useful for internal debugging only.
a247fe
;opcache.protect_memory=0
a247fe
a247fe
; Allows calling OPcache API functions only from PHP scripts which path is
a247fe
; started from specified string. The default "" means no restriction
a247fe
;opcache.restrict_api=
a247fe
a247fe
; Enables and sets the second level cache directory.
a247fe
; It should improve performance when SHM memory is full, at server restart or
a247fe
; SHM reset. The default "" disables file based caching.
a247fe
; RPM note : file cache directory must be owned by process owner
a247fe
;   for mod_php, see /etc/httpd/conf.d/php.conf
a247fe
;   for php-fpm, see /etc/php-fpm.d/*conf
a247fe
;opcache.file_cache=
a247fe
a247fe
; Enables or disables opcode caching in shared memory.
a247fe
;opcache.file_cache_only=0
a247fe
a247fe
; Enables or disables checksum validation when script loaded from file cache.
a247fe
;opcache.file_cache_consistency_checks=1
a247fe
a247fe
; Implies opcache.file_cache_only=1 for a certain process that failed to
a247fe
; reattach to the shared memory (for Windows only). Explicitly enabled file
a247fe
; cache is required.
a247fe
;opcache.file_cache_fallback=1
a247fe
a247fe
; Validate cached file permissions.
a247fe
; Leads OPcache to check file readability on each access to cached file.
a247fe
; This directive should be enabled in shared hosting environment, when few
a247fe
; users (PHP-FPM pools) reuse the common OPcache shared memory.
a247fe
;opcache.validate_permission=0
a247fe
a247fe
; Prevent name collisions in chroot'ed environment.
a247fe
; This directive prevents file name collisions in different "chroot"
a247fe
; environments. It should be enabled for sites that may serve requests in
a247fe
; different "chroot" environments.
a247fe
;opcache.validate_root=0