Setting | Default | Minimum | Maximum | Changeable | Description |
wincache.fcenabled | 1 (On) | 0 (Off) | 1 (On) | PHP_INI_ALL | Enables or disables the file cache functionality |
wincache.fcenabledfilter | no value | no value | no value | PHP_INI_SYSTEM | Defines a comma separated list of site-ids for which wincache.fcenabled property value is toggled. |
wincache.fcachesize | 24 | 5 | 85 | PHP_INI_SYSTEM | Defines the maximum memory size (in megabytes) that is allocated for the file cache. If the total size of all the cached files exceeds the value specified in this setting, then most stale files will be removed from the file cache. |
wincache.fcndetect | 1 (On) | 0 (Off) | 1 (On) | PHP_INI_SYSTEM | Enables or disables the file change notification detection functionality. If file change notification is supported then it will be used to refresh the opcode and file cache entries as soon as the corresponding files are modified on a file system. If file change notification is not supported, for example when using network file shares, then wincache will poll for file changes at regular time intervals specified by wincache.chkinterval. |
wincache.maxfilesize | 256 | 10 | 2048 | PHP_INI_SYSTEM | Defines the maximum allowed size (in kilobytes) for a single file to be cached. If a file size exceeds the specified value, the file will not be cached. This setting applies to the file cache only. |
wincache.ocenabled | 1 (On) | 0 (Off) | 1 (On) | PHP_INI_ALL | Enables or disables the opcode cache functionality |
wincache.ocenabledfilter | no value | no value | no value | PHP_INI_SYSTEM | Defines a comma separated list of site-ids for which wincache.ocenabled property value is toggled. |
wincache.ocachesize | 96 | 15 | 255 | PHP_INI_SYSTEM | Defines the maximum memory size (in megabytes) that is allocated for the opcode cache. If the cached opcode size exceeds the specified value, then most stale opcode will be removed from the cache. Note that the opcode cache size must be at least 3 times bigger than file cache size. If that is not the case the opcode cache size will be automatically increased. |
wincache.filecount | 4096 | 1024 | 16384 | PHP_INI_SYSTEM | Defines how many files are expected to be cached by the extension, so that appropriate memory size is allocated at the startup time. If the number of files exceeds the specified value, the WinCache will re-allocate more memory as needed. |
wincache.chkinterval | 30 | 0, 2 | 300 | PHP_INI_SYSTEM | Defines how often (in seconds) the extension checks for file changes in order to refresh the cache. Setting it to 0 will disable the refreshing of the cache. The file changes will not be reflected in the cache unless the cache entry for that file is removed by scavenger or IIS application pool is recycled or wincache_refresh_if_changed function is called. |
wincache.ttlmax | 1200 | 0, 60 | 7200 | PHP_INI_SYSTEM | Defines the maximum time to live (in seconds) for a cached entry without being used. Setting it to 0 will disable scavenger which takes care of removing old entries. |
wincache.enablecli | 0 (Off) | 1 (On) | 0 (Off) | PHP_INI_SYSTEM | Defines if caching is enabled when PHP is running in command line (CLI) mode. |
wincache.ignorelist | no value | no value | no value | PHP_INI_ALL | Defines a list of files that should not be cached by the extension. The files list is specified by using file names only, separated by the pipe symbol - "|". For example:
wincache.ignorelist = "index.php|misc.php|admin.php" |
wincache.namesalt | no value | no value | no value | PHP_INI_SYSTEM | Defines a string that will be used when naming the extension specific objects that are stored in shared memory. This is used to avoid conflicts that may be caused if other applications within an IIS worker process tries to access shared memory. |
wincache.ucenabled | 0 (Off) | 1 (On) | 1 (On) | PHP_INI_SYSTEM | Enables or disables the user cache functionality. |
wincache.ucachesize | 5 | 85 | 8 | PHP_INI_SYSTEM | Defines the maximum memory size (in megabytes) that is allocated for the user cache. If the total size of variables stored in the user cache exceeds the specified value, then the most stale variables will be removed from the cache. |