]> git.pld-linux.org Git - packages/php.git/blob - opcache.ini
- up to 8.0.7; soname to reflect that this is php 8
[packages/php.git] / opcache.ini
1 [opcache]
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
7
8 ; The OPcache shared memory storage size.
9 ;opcache.memory_consumption=128
10
11 ; The amount of memory for interned strings in Mbytes.
12 ;opcache.interned_strings_buffer=8
13
14 ; The maximum number of keys (scripts) in the OPcache hash table.
15 ; Only numbers between 200 and 1000000 are allowed.
16 ;opcache.max_accelerated_files=10000
17
18 ; The maximum percentage of "wasted" memory until a restart is scheduled.
19 ;opcache.max_wasted_percentage=5
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.
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
30
31 ; How often (in seconds) to check file timestamps for changes to the shared
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
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
48 ; Allow file existence override (file_exists, etc.) performance feature.
49 ;opcache.enable_file_override=0
50
51 ; A bitmask, where each bit enables or disables the appropriate OPcache
52 ; passes
53 ;opcache.optimization_level=0x7FFFBFFF
54
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
68
69 ; Check the cache checksum each N requests.
70 ; The default value of "0" means that the checks are disabled.
71 ;opcache.consistency_checks=0
72
73 ; How long to wait (in seconds) for a scheduled restart to begin if the cache
74 ; is not being accessed.
75 ;opcache.force_restart_timeout=180
76
77 ; OPcache error_log file name. Empty string assumes "stderr".
78 ;opcache.error_log=
79
80 ; All OPcache errors go to the Web server log.
81 ; By default, only fatal errors (level 0) or errors (level 1) are logged.
82 ; You can also enable warnings (level 2), info messages (level 3) or
83 ; debug messages (level 4).
84 ;opcache.log_verbosity_level=1
85
86 ; Preferred Shared Memory back-end. Leave empty and let the system decide.
87 ;opcache.preferred_memory_model=
88
89 ; Protect the shared memory from unexpected writing during script execution.
90 ; Useful for internal debugging only.
91 ;opcache.protect_memory=0
92
93 ; Allows calling OPcache API functions only from PHP scripts which path is
94 ; started from specified string. The default "" means no restriction
95 ;opcache.restrict_api=
96
97 ; Mapping base of shared memory segments (for Windows only). All the PHP
98 ; processes have to map shared memory into the same address space. This
99 ; directive allows to manually fix the "Unable to reattach to base address"
100 ; errors.
101 ;opcache.mmap_base=
102
103 ; Facilitates multiple OPcache instances per user (for Windows only). All PHP
104 ; processes with the same cache ID and user share an OPcache instance.
105 ;opcache.cache_id=
106
107 ; Enables and sets the second level cache directory.
108 ; It should improve performance when SHM memory is full, at server restart or
109 ; SHM reset. The default "" disables file based caching.
110 ;opcache.file_cache=
111
112 ; Enables or disables opcode caching in shared memory.
113 ;opcache.file_cache_only=0
114
115 ; Enables or disables checksum validation when script loaded from file cache.
116 ;opcache.file_cache_consistency_checks=1
117
118 ; Implies opcache.file_cache_only=1 for a certain process that failed to
119 ; reattach to the shared memory (for Windows only). Explicitly enabled file
120 ; cache is required.
121 ;opcache.file_cache_fallback=1
122
123 ; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
124 ; This should improve performance, but requires appropriate OS configuration.
125 ;opcache.huge_code_pages=1
126
127 ; Validate cached file permissions.
128 ;opcache.validate_permission=0
129
130 ; Prevent name collisions in chroot'ed environment.
131 ;opcache.validate_root=0
132
133 ; If specified, it produces opcode dumps for debugging different stages of
134 ; optimizations.
135 ;opcache.opt_debug_level=0
136
137 ; Specifies a PHP script that is going to be compiled and executed at server
138 ; start-up.
139 ; http://php.net/opcache.preload
140 ;opcache.preload=
141
142 ; Preloading code as root is not allowed for security reasons. This directive
143 ; facilitates to let the preloading to be run as another user.
144 ; http://php.net/opcache.preload_user
145 ;opcache.preload_user=
146
147 ; Prevents caching files that are less than this number of seconds old. It
148 ; protects from caching of incompletely updated files. In case all file updates
149 ; on your site are atomic, you may increase performance by setting it to "0".
150 ;opcache.file_update_protection=2
151
152 ; Absolute path used to store shared lockfiles (for *nix only).
153 ;opcache.lockfile_path=/tmp
This page took 0.033427 seconds and 3 git commands to generate.