]> git.pld-linux.org Git - packages/php.git/blame - opcache.ini
up to 8.3.7
[packages/php.git] / opcache.ini
CommitLineData
baf381c1 1[opcache]
cba59a8a
ER
2; Determines if Zend OPCache is enabled
3;opcache.enable=1
4
5; Determines if Zend OPCache is enabled for the CLI version of PHP
6;opcache.enable_cli=0
c8d3fdca
ER
7
8; The OPcache shared memory storage size.
cba59a8a 9;opcache.memory_consumption=128
c8d3fdca
ER
10
11; The amount of memory for interned strings in Mbytes.
cba59a8a 12;opcache.interned_strings_buffer=8
c8d3fdca
ER
13
14; The maximum number of keys (scripts) in the OPcache hash table.
cba59a8a
ER
15; Only numbers between 200 and 1000000 are allowed.
16;opcache.max_accelerated_files=10000
c8d3fdca
ER
17
18; The maximum percentage of "wasted" memory until a restart is scheduled.
cba59a8a 19;opcache.max_wasted_percentage=5
c8d3fdca
ER
20
21; When this directive is enabled, the OPcache appends the current working
22; directory to the script key, thus eliminating possible collisions between
23; files with the same name (basename). Disabling the directive improves
24; performance, but may break existing applications.
cba59a8a
ER
25;opcache.use_cwd=1
26
27; When disabled, you must reset the OPcache manually or restart the
28; webserver for changes to the filesystem to take effect.
29;opcache.validate_timestamps=1
94b99ab9 30
c8d3fdca 31; How often (in seconds) to check file timestamps for changes to the shared
cba59a8a
ER
32; memory storage allocation. ("1" means validate once per second, but only
33; once per request. "0" means always validate)
34;opcache.revalidate_freq=2
35
36; Enables or disables file search in include_path optimization
37;opcache.revalidate_path=0
38
39; If disabled, all PHPDoc comments are dropped from the code to reduce the
40; size of the optimized code.
41;opcache.save_comments=1
42
fd83cc8f
ER
43; If enabled, compilation warnings (including notices and deprecations) will
44; be recorded and replayed each time a file is included. Otherwise, compilation
45; warnings will only be emitted when the file is first cached.
46;opcache.record_warnings=0
47
c8d3fdca 48; Allow file existence override (file_exists, etc.) performance feature.
cba59a8a
ER
49;opcache.enable_file_override=0
50
51; A bitmask, where each bit enables or disables the appropriate OPcache
52; passes
545270fb 53;opcache.optimization_level=0x7FFFBFFF
cba59a8a 54
cba59a8a
ER
55;opcache.dups_fix=0
56
57; The location of the OPcache blacklist file (wildcards allowed).
58; Each OPcache blacklist file is a text file that holds the names of files
59; that should not be accelerated. The file format is to add each filename
60; to a new line. The filename may be a full path or just a file prefix
61; (i.e., /var/www/x blacklists all the files and directories in /var/www
62; that start with 'x'). Line starting with a ; are ignored (comments).
63;opcache.blacklist_filename=
64
65; Allows exclusion of large files from being cached. By default all files
66; are cached.
67;opcache.max_file_size=0
c8d3fdca 68
c8d3fdca 69; How long to wait (in seconds) for a scheduled restart to begin if the cache
cba59a8a
ER
70; is not being accessed.
71;opcache.force_restart_timeout=180
c8d3fdca
ER
72
73; OPcache error_log file name. Empty string assumes "stderr".
cba59a8a 74;opcache.error_log=
c8d3fdca
ER
75
76; All OPcache errors go to the Web server log.
cba59a8a
ER
77; By default, only fatal errors (level 0) or errors (level 1) are logged.
78; You can also enable warnings (level 2), info messages (level 3) or
79; debug messages (level 4).
80;opcache.log_verbosity_level=1
c8d3fdca
ER
81
82; Preferred Shared Memory back-end. Leave empty and let the system decide.
cba59a8a 83;opcache.preferred_memory_model=
c8d3fdca
ER
84
85; Protect the shared memory from unexpected writing during script execution.
86; Useful for internal debugging only.
cba59a8a
ER
87;opcache.protect_memory=0
88
89; Allows calling OPcache API functions only from PHP scripts which path is
90; started from specified string. The default "" means no restriction
91;opcache.restrict_api=
c8d3fdca
ER
92
93; Mapping base of shared memory segments (for Windows only). All the PHP
94; processes have to map shared memory into the same address space. This
95; directive allows to manually fix the "Unable to reattach to base address"
96; errors.
cba59a8a
ER
97;opcache.mmap_base=
98
1982e89a
ER
99; Facilitates multiple OPcache instances per user (for Windows only). All PHP
100; processes with the same cache ID and user share an OPcache instance.
101;opcache.cache_id=
102
cba59a8a
ER
103; Enables and sets the second level cache directory.
104; It should improve performance when SHM memory is full, at server restart or
105; SHM reset. The default "" disables file based caching.
106;opcache.file_cache=
107
108; Enables or disables opcode caching in shared memory.
109;opcache.file_cache_only=0
110
111; Enables or disables checksum validation when script loaded from file cache.
112;opcache.file_cache_consistency_checks=1
113
114; Implies opcache.file_cache_only=1 for a certain process that failed to
115; reattach to the shared memory (for Windows only). Explicitly enabled file
116; cache is required.
117;opcache.file_cache_fallback=1
118
119; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
8a8e0b2e
AM
120; Under certain circumstances (if only a single global PHP process is
121; started from which all others fork), this can increase performance
122; by a tiny amount because TLB misses are reduced. On the other hand, this
123; delays PHP startup, increases memory usage and degrades performance
124; under memory pressure - use with care.
125; Requires appropriate OS configuration.
126;opcache.huge_code_pages=0
cba59a8a
ER
127
128; Validate cached file permissions.
129;opcache.validate_permission=0
94b99ab9 130
cba59a8a
ER
131; Prevent name collisions in chroot'ed environment.
132;opcache.validate_root=0
0debbb36
ER
133
134; If specified, it produces opcode dumps for debugging different stages of
135; optimizations.
136;opcache.opt_debug_level=0
f7323448
ER
137
138; Specifies a PHP script that is going to be compiled and executed at server
139; start-up.
8a8e0b2e 140; https://php.net/opcache.preload
f7323448
ER
141;opcache.preload=
142
baf381c1
ER
143; Preloading code as root is not allowed for security reasons. This directive
144; facilitates to let the preloading to be run as another user.
8a8e0b2e 145; https://php.net/opcache.preload_user
baf381c1
ER
146;opcache.preload_user=
147
f7323448
ER
148; Prevents caching files that are less than this number of seconds old. It
149; protects from caching of incompletely updated files. In case all file updates
150; on your site are atomic, you may increase performance by setting it to "0".
151;opcache.file_update_protection=2
152
153; Absolute path used to store shared lockfiles (for *nix only).
154;opcache.lockfile_path=/tmp
8a8e0b2e 155
This page took 0.340808 seconds and 5 git commands to generate.