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