|
| 1 | +opcache.enable=1 |
| 2 | + |
| 3 | +; Determines if Zend OPCache is enabled for the CLI version of PHP |
| 4 | +opcache.enable_cli=0 |
| 5 | + |
| 6 | +; The OPcache shared memory storage size. |
| 7 | +opcache.memory_consumption=256 |
| 8 | + |
| 9 | +; The amount of memory for interned strings in Mbytes. |
| 10 | +;opcache.interned_strings_buffer=4 |
| 11 | + |
| 12 | +; The maximum number of keys (scripts) in the OPcache hash table. |
| 13 | +; Only numbers between 200 and 100000 are allowed. |
| 14 | +opcache.max_accelerated_files=100000 |
| 15 | + |
| 16 | +; The maximum percentage of "wasted" memory until a restart is scheduled. |
| 17 | +;opcache.max_wasted_percentage=5 |
| 18 | + |
| 19 | +; When this directive is enabled, the OPcache appends the current working |
| 20 | +; directory to the script key, thus eliminating possible collisions between |
| 21 | +; files with the same name (basename). Disabling the directive improves |
| 22 | +; performance, but may break existing applications. |
| 23 | +;opcache.use_cwd=1 |
| 24 | + |
| 25 | +; When disabled, you must reset the OPcache manually or restart the |
| 26 | +; webserver for changes to the filesystem to take effect. |
| 27 | +;opcache.validate_timestamps=1 |
| 28 | + |
| 29 | +; How often (in seconds) to check file timestamps for changes to the shared |
| 30 | +; memory storage allocation. ("1" means validate once per second, but only |
| 31 | +; once per request. "0" means always validate) |
| 32 | +;opcache.revalidate_freq=2 |
| 33 | + |
| 34 | +; Enables or disables file search in include_path optimization |
| 35 | +;opcache.revalidate_path=0 |
| 36 | + |
| 37 | +; If disabled, all PHPDoc comments are dropped from the code to reduce the |
| 38 | +; size of the optimized code. |
| 39 | +;opcache.save_comments=1 |
| 40 | + |
| 41 | +; If disabled, PHPDoc comments are not loaded from SHM, so "Doc Comments" |
| 42 | +; may be always stored (save_comments=1), but not loaded by applications |
| 43 | +; that don't need them anyway. |
| 44 | +;opcache.load_comments=1 |
| 45 | + |
| 46 | +; If enabled, a fast shutdown sequence is used for the accelerated code |
| 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 |
0 commit comments