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