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