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