]> git.pld-linux.org Git - packages/php.git/blame - opcache.ini
- unified bzip2 bcond name
[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
c8d3fdca 43; Allow file existence override (file_exists, etc.) performance feature.
cba59a8a
ER
44;opcache.enable_file_override=0
45
46; A bitmask, where each bit enables or disables the appropriate OPcache
47; passes
545270fb 48;opcache.optimization_level=0x7FFFBFFF
cba59a8a 49
cba59a8a
ER
50;opcache.dups_fix=0
51
52; The location of the OPcache blacklist file (wildcards allowed).
53; Each OPcache blacklist file is a text file that holds the names of files
54; that should not be accelerated. The file format is to add each filename
55; to a new line. The filename may be a full path or just a file prefix
56; (i.e., /var/www/x blacklists all the files and directories in /var/www
57; that start with 'x'). Line starting with a ; are ignored (comments).
58;opcache.blacklist_filename=
59
60; Allows exclusion of large files from being cached. By default all files
61; are cached.
62;opcache.max_file_size=0
c8d3fdca
ER
63
64; Check the cache checksum each N requests.
cba59a8a
ER
65; The default value of "0" means that the checks are disabled.
66;opcache.consistency_checks=0
c8d3fdca
ER
67
68; How long to wait (in seconds) for a scheduled restart to begin if the cache
cba59a8a
ER
69; is not being accessed.
70;opcache.force_restart_timeout=180
c8d3fdca
ER
71
72; OPcache error_log file name. Empty string assumes "stderr".
cba59a8a 73;opcache.error_log=
c8d3fdca
ER
74
75; All OPcache errors go to the Web server log.
cba59a8a
ER
76; By default, only fatal errors (level 0) or errors (level 1) are logged.
77; You can also enable warnings (level 2), info messages (level 3) or
78; debug messages (level 4).
79;opcache.log_verbosity_level=1
c8d3fdca
ER
80
81; Preferred Shared Memory back-end. Leave empty and let the system decide.
cba59a8a 82;opcache.preferred_memory_model=
c8d3fdca
ER
83
84; Protect the shared memory from unexpected writing during script execution.
85; Useful for internal debugging only.
cba59a8a
ER
86;opcache.protect_memory=0
87
88; Allows calling OPcache API functions only from PHP scripts which path is
89; started from specified string. The default "" means no restriction
90;opcache.restrict_api=
c8d3fdca
ER
91
92; Mapping base of shared memory segments (for Windows only). All the PHP
93; processes have to map shared memory into the same address space. This
94; directive allows to manually fix the "Unable to reattach to base address"
95; errors.
cba59a8a
ER
96;opcache.mmap_base=
97
1982e89a
ER
98; Facilitates multiple OPcache instances per user (for Windows only). All PHP
99; processes with the same cache ID and user share an OPcache instance.
100;opcache.cache_id=
101
cba59a8a
ER
102; Enables and sets the second level cache directory.
103; It should improve performance when SHM memory is full, at server restart or
104; SHM reset. The default "" disables file based caching.
105;opcache.file_cache=
106
107; Enables or disables opcode caching in shared memory.
108;opcache.file_cache_only=0
109
110; Enables or disables checksum validation when script loaded from file cache.
111;opcache.file_cache_consistency_checks=1
112
113; Implies opcache.file_cache_only=1 for a certain process that failed to
114; reattach to the shared memory (for Windows only). Explicitly enabled file
115; cache is required.
116;opcache.file_cache_fallback=1
117
118; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
119; This should improve performance, but requires appropriate OS configuration.
120;opcache.huge_code_pages=1
121
122; Validate cached file permissions.
123;opcache.validate_permission=0
94b99ab9 124
cba59a8a
ER
125; Prevent name collisions in chroot'ed environment.
126;opcache.validate_root=0
0debbb36
ER
127
128; If specified, it produces opcode dumps for debugging different stages of
129; optimizations.
130;opcache.opt_debug_level=0
f7323448
ER
131
132; Specifies a PHP script that is going to be compiled and executed at server
133; start-up.
134; http://php.net/opcache.preload
135;opcache.preload=
136
baf381c1
ER
137; Preloading code as root is not allowed for security reasons. This directive
138; facilitates to let the preloading to be run as another user.
139; http://php.net/opcache.preload_user
140;opcache.preload_user=
141
f7323448
ER
142; Prevents caching files that are less than this number of seconds old. It
143; protects from caching of incompletely updated files. In case all file updates
144; on your site are atomic, you may increase performance by setting it to "0".
145;opcache.file_update_protection=2
146
147; Absolute path used to store shared lockfiles (for *nix only).
148;opcache.lockfile_path=/tmp
This page took 0.059058 seconds and 4 git commands to generate.