]> git.pld-linux.org Git - packages/php-pecl-zendopcache.git/blob - zendopcache.ini
up to 7.0.2
[packages/php-pecl-zendopcache.git] / zendopcache.ini
1 ; Enable zendopcache zend extension module
2 zend_extension=@extensiondir@/opcache.so
3
4 ; OPcache On/Off switch. When set to Off, code is not optimized.
5 ; (default "1")
6 opcache.enable = 1
7
8 ; Enables the OPcache for the CLI version of PHP. It's mostly for testing and debugging.
9 ; (default "0")
10 opcache.enable_cli = 0
11
12 ; The OPcache shared memory storage size.
13 ; The amount of memory for storing precompiled PHP code in Mbytes.
14 ; (default "64")
15 opcache.memory_consumption = 64
16
17 ; The amount of memory for interned strings in Mbytes.
18 ; (default "4")
19 opcache.interned_strings_buffer = 4
20
21 ; The maximum number of keys (scripts) in the OPcache hash table.
22 ; The number is actually the first one in the following set of prime numbers
23 ; that is bigger than the one supplied: { 223, 463, 983, 1979, 3907, 7963,
24 ; 16229, 32531, 65407, 130987 }. Only numbers between 200 and 100000 are
25 ; allowed.
26 ; (default "2000")
27 opcache.max_accelerated_files = 2000
28
29 ; The maximum percentage of "wasted" memory until a restart is scheduled.
30 ; (default "5")
31 opcache.max_wasted_percentage = 5
32
33 ; When this directive is enabled, the OPcache appends the current working
34 ; directory to the script key, thus eliminating possible collisions between
35 ; files with the same name (basename). Disabling the directive improves
36 ; performance, but may break existing applications.
37 ; (default "1")
38 opcache.use_cwd = 1
39
40 ; When disabled, you must reset the OPcache manually or restart the webserver
41 ; for changes to the filesystem to take effect. The frequency of the check is
42 ; controlled by the directive "opcache.revalidate_freq".
43 ; (default "1")
44 opcache.validate_timestamps = 1
45
46 ; How often (in seconds) to check file timestamps for changes to the shared
47 ; memory storage allocation. ("1" means validate once per second, but only once
48 ; per request. "0" means always validate)
49 ; (default "2")
50 opcache.revalidate_freq = 2
51
52 ; Enables or disables file search in include_path optimization.
53 ; If the file search is disabled and a cached file is found that uses the same
54 ; include_path, the file is not searched again. Thus, if a file with the same
55 ; name appears somewhere else in include_path, it won't be found. Enable this
56 ; directive if this optimization has an effect on your applications. The
57 ; default for this directive is disabled, which means that optimization is
58 ; active.
59 ; (default "0")
60 opcache.revalidate_path = 0
61
62 ; If disabled, all PHPDoc comments are dropped from the code to reduce the size
63 ; of the optimized code. Disabling "Doc Comments" may break some existing
64 ; applications and frameworks (e.g. Doctrine, ZF2, PHPUnit)
65 ; (default "1")
66 opcache.save_comments = 1
67
68 ; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments" may
69 ; be always stored (save_comments=1), but not loaded by applications that don't
70 ; need them anyway.
71 ; (default "1")
72 opcache.load_comments = 1
73
74 ; If enabled, a fast shutdown sequence is used for the accelerated code. The
75 ; fast shutdown sequence doesn't free each allocated block, but lets the Zend
76 ; Engine Memory Manager do the work.
77 ; (default "0")
78 opcache.fast_shutdown = 0
79
80 ; Allow file existence override (file_exists, etc.) performance feature.
81 ; (default "0")
82 opcache.enable_file_override = 0
83
84 ; A bitmask, where each bit enables or disables the appropriate OPcache passes
85 ; (default "0xffffffff")
86 opcache.optimization_level = 0xffffffff
87
88 ; Enable this hack as a workaround for "can't redeclare class" errors.
89 ; The OPcache stores the places where DECLARE_CLASS opcodes use inheritance
90 ; (These are the only opcodes that can be executed by PHP, but which may not be
91 ; executed because the parent class is missing due to optimization). When the
92 ; file is loaded, OPcache tries to bind the inherited classes by using the
93 ; current environment. The problem with this scenario is that, while the
94 ; DECLARE_CLASS opcode may not be needed for the current script, if the script
95 ; requires that the opcode at least be defined, it may not run. The default for
96 ; this directive is disabled, which means that optimization is active. In
97 ; php-5.3 and above this hack is not needed anymore and this setting has no
98 ; effect.
99 ; (default "1")
100 opcache.inherited_hack = 1
101
102 ; The location of the OPcache blacklist file (wildcards allowed).
103 ; Each OPcache blacklist file is a text file that holds the names of files that
104 ; should not be accelerated. The file format is to add each filename to a new
105 ; line. The filename may be a full path or just a file prefix (i.e., /var/www/x
106 ; blacklists all the files and directories in /var/www that start with 'x').
107 ; Line starting with a ; are ignored (comments).  Files are usually triggered
108 ; by one of the following three reasons:
109 ; 1) Directories that contain auto generated code, like Smarty or ZFW cache.
110 ; 2) Code that does not work well when accelerated, due to some delayed
111 ;   compile time evaluation.
112 ; 3) Code that triggers an OPcache bug.
113 ; (default "")
114 opcache.blacklist_filename = ""
115
116 ; Allows exclusion of large files from being cached. By default all files are
117 ; cached.
118 ; (default "0")
119 opcache.max_file_size = 0
120
121 ; Check the cache checksum each N requests.
122 ; The default value of "0" means that the checks are disabled. Because
123 ; calculating the checksum impairs performance, this directive should be
124 ; enabled only as part of a debugging process.
125 ; (default "0")
126 opcache.consistency_checks = 0
127
128 ; How long to wait (in seconds) for a scheduled restart to begin if the cache
129 ; is not being accessed. The OPcache uses this directive to identify a
130 ; situation where there may be a problem with a process. After this time period
131 ; has passed, the OPcache assumes that something has happened and starts
132 ; killing the processes that still hold the locks that are preventing a
133 ; restart. If the log level is 3 or above, a "killed locker" error is recorded
134 ; in the Apache logs when this happens.
135 ; (default "180")
136 opcache.force_restart_timeout = 180
137
138 ; OPcache error_log file name. Empty string assumes "stderr".
139 ; (default "" which means stderr)
140 opcache.error_log = ""
141
142 ; All OPcache errors go to the Web server log.
143 ; By default, only fatal errors (level 0) or errors (level 1) are logged. You
144 ; can also enable warnings (level 2), info messages (level 3) or debug messages
145 ; (level 4).
146 ; (default "1")
147 opcache.log_verbosity_level = 1
148
149 ; Preferred Shared Memory back-end. Leave empty and let the system decide.
150 ; (default "")
151 opcache.preferred_memory_model = ""
152
153 ; Protect the shared memory from unexpected writing during script execution.
154 ; Useful for internal debugging only.
155 ; (default "0")
156 opcache.protect_memory = 0
157
158 ; Mapping base of shared memory segments (for Windows only). All the PHP
159 ; processes have to map shared memory into the same address space. This
160 ; directive allows to manually fix the "Unable to reattach to base address"
161 ; errors.
162 ;opcache.mmap_base = ""
This page took 0.075424 seconds and 3 git commands to generate.