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