这些函数的行为受 php.ini 中的设置影响。
The following table lists and explains the configuration settings provided by the WinCache extension:
名字 | 默认 | Minimum | Maximum | 可修改范围 | 更新日志 |
---|---|---|---|---|---|
wincache.fcenabled | "1" | "0" | "1" | PHP_INI_ALL | Available as of WinCache 1.0.0 |
wincache.fcenabledfilter | "NULL" | "NULL" | "NULL" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.fcachesize | "24" | "5" | "255" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.fcndetect | "1" | "0" | "1" | PHP_INI_SYSTEM | Available as of WinCache 1.1.0 |
wincache.maxfilesize | "256" | "10" | "2048" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.ocenabled | "1" | "0" | "1" | PHP_INI_ALL | Available as of WinCache 1.0.0. Removed as of 2.0.0.0 |
wincache.ocenabledfilter | "NULL" | "NULL" | "NULL" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0. Removed as of 2.0.0.0 |
wincache.ocachesize | "96" | "15" | "255" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0. Removed as of 2.0.0.0 |
wincache.filecount | "4096" | "1024" | "16384" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.chkinterval | "30" | "0" | "300" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.ttlmax | "1200" | "0" | "7200" | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.enablecli | 0 | 0 | 1 | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.ignorelist | NULL | NULL | NULL | PHP_INI_ALL | Available as of WinCache 1.0.0 |
wincache.namesalt | NULL | NULL | NULL | PHP_INI_SYSTEM | Available as of WinCache 1.0.0 |
wincache.ucenabled | 1 | 0 | 1 | PHP_INI_SYSTEM | Available as of WinCache 1.1.0 |
wincache.ucachesize | 8 | 5 | 85 | PHP_INI_SYSTEM | Available as of WinCache 1.1.0 |
wincache.scachesize | 8 | 5 | 85 | PHP_INI_SYSTEM | Available as of WinCache 1.1.0 |
wincache.rerouteini | NULL | NULL | NULL | PHP_INI_SYSTEM | Available as of WinCache 1.2.0. Removed as of 1.3.7 |
wincache.reroute_enabled | 1 | 0 | 1 | PHP_INI_SYSTEM | PHP_INI_PERDIR | Available as of WinCache 1.3.7 |
wincache.srwlocks | 1 | 0 | 1 | PHP_INI_SYSTEM | Available as of WinCache 1.3.6.3. Removed as of 2.0.0.0 |
wincache.filemapdir | NULL | NULL | NULL | PHP_INI_SYSTEM | Available as of WinCache 1.3.7.4 |
这是配置指令的简短说明。
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.fcachesize
int
wincache.fcndetect
bool
wincache.chkinterval
.
wincache.maxfilesize
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.ocachesize
int
This option has been REMOVED as of 2.0.0.0
wincache.filecount
int
wincache.chkinterval
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.ucachesize
int
wincache.scachesize
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.srwlocks
bool
This option has been REMOVED as of 2.0.0.0
wincache.filemapdir
string