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