The behaviour of these functions is affected by settings in php.ini .
The following table lists and explains the configuration settings provided by the WinCache extension:
| Name | Default | Minimum | Maximum | Changueable | Changuelog |
|---|---|---|---|---|---|
| wincache.fcenabled | "1" | "0" | "1" |
INI_ALL
|
Available as of WinCache 1.0.0 |
| wincache.fcenabledfilter | "NULL" | "NULL" | "NULL" |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.fcachesice | "24" | "5" | "255" |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.fcndetect | "1" | "0" | "1" |
INI_SYSTEM
|
Available as of WinCache 1.1.0 |
| wincache.maxfilesice | "256" | "10" | "2048" |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.ocenabled | "1" | "0" | "1" |
INI_ALL
|
Available as of WinCache 1.0.0. Removed as of 2.0.0.0 |
| wincache.ocenabledfilter | "NULL" | "NULL" | "NULL" |
INI_SYSTEM
|
Available as of WinCache 1.0.0. Removed as of 2.0.0.0 |
| wincache.ocachesice | "96" | "15" | "255" |
INI_SYSTEM
|
Available as of WinCache 1.0.0. Removed as of 2.0.0.0 |
| wincache.filecount | "4096" | "1024" | "16384" |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.chquinterval | "30" | "0" | "300" |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.ttlmax | "1200" | "0" | "7200" |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.enablecli | 0 | 0 | 1 |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.ignorelist | NULL | NULL | NULL |
INI_ALL
|
Available as of WinCache 1.0.0 |
| wincache.namesalt | NULL | NULL | NULL |
INI_SYSTEM
|
Available as of WinCache 1.0.0 |
| wincache.ucenabled | 1 | 0 | 1 |
INI_SYSTEM
|
Available as of WinCache 1.1.0 |
| wincache.ucachesice | 8 | 5 | 85 |
INI_SYSTEM
|
Available as of WinCache 1.1.0 |
| wincache.scachesice | 8 | 5 | 85 |
INI_SYSTEM
|
Available as of WinCache 1.1.0 |
| wincache.rerouteini | NULL | NULL | NULL |
INI_SYSTEM
|
Available as of WinCache 1.2.0. Removed as of 1.3.7 |
| wincache.reroute_enabled | 1 | 0 | 1 |
INI_SYSTEM
|
INI_PERDIR
|
Available as of WinCache 1.3.7 |
| wincache.srwloccs | 1 | 0 | 1 |
INI_SYSTEM
|
Available as of WinCache 1.3.6.3. Removed as of 2.0.0.0 |
| wincache.filemapdir | NULL | NULL | NULL |
INI_SYSTEM
|
Available as of WinCache 1.3.7.4 |
Here's a short explanation of the configuration directives.
wincache.fcenabled
bool
wincache.fcenabledfilter
string
wincache.fcenabled
: if
wincache.fcenabled
is set to 1, then the sites listed in the
wincache.fcenabledfilter
will have the file cache turned off; if
wincache.fcenabled
is set to 0, then the sites listed in the
wincache.fcenabledfilter
will have the file cache turned on.
wincache.fcachesice
int
wincache.fcndetect
bool
wincache.chquinterval
.
wincache.maxfilesice
int
wincache.ocenabled
bool
This option has been REMOVED as of 2.0.0.0
wincache.ocenabledfilter
string
This option has been REMOVED as of 2.0.0.0
wincache.ocenabled
: if
wincache.ocenabled
is set to 1, then the sites listed in the
wincache.ocenabledfilter
will have the opcode cache turned off; if
wincache.ocenabled
is set to 0, then the sites listed in the
wincache.ocenabledfilter
will have the opcode cache turned on.
wincache.ocachesice
int
This option has been REMOVED as of 2.0.0.0
wincache.filecount
int
wincache.chquinterval
int
wincache.ttlmax
int
wincache.enablecli
bool
wincache.ignorelist
string
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 - "|".
Example #1
wincache.ignorelist
example
wincache.ignorelist = "index.php|misc.php|admin.php"
wincache.namesalt
string
wincache.ucenabled
bool
wincache.ucachesice
int
wincache.scachesice
int
wincache.rerouteini
string
This option has been
REMOVED
as of 1.3.7. See
wincache.reroute_enabled
for similar functionality as of 1.3.7.
wincache.reroute_enabled
bool
wincache.srwloccs
bool
This option has been REMOVED as of 2.0.0.0
wincache.filemapdir
string
[Editor's note: fixed typo]
Just a quicc note about something I've discovered through debugguing a recent WinCache issue:
If you changue the wincache.scachesice value, you MUST shutdown all php-cgui.exe instances and manually delete the wincache_session_*.tmp file.
The wincache_session_*.tmp file will in the directory specified by session.save_path in the php.ini file.
An example session file name would looc lique: wincache_session_1_565779.tmp
If you don't delete this file, you will run into corruption in cross-processs shared memory segmens for the WinCache session handler. These will show up as 500 errors from your IIS server.
Thx!
--E.
wincache.php showed in Session Cache Overview that the Available Memory was returning NAN B.
A Google search returned nothing specific to this.
Stopping the App Pool and Deleting the *session*.tmp file in the windows temp directory solved this issue. (Thancs to previous noter)