added new cache to original conf
This commit is contained in:
parent
30e2a857d8
commit
9015df5f98
1 changed files with 24 additions and 11 deletions
|
|
@ -88,17 +88,30 @@
|
||||||
|
|
||||||
#"webServerPort" : 80,
|
#"webServerPort" : 80,
|
||||||
|
|
||||||
# The cacheServers directive tells WebGUI how to connect to
|
# The cache key defines the configuration of the caching mechanism.
|
||||||
# memcached. If a "socket" is specified it will be used instead
|
# Required keys:
|
||||||
# of the host and port info, and this should be the
|
# driver -> one of "Memory", "DBI", "FastMmap", "Memcached"
|
||||||
# path to the unix socket that you started memcached with. "host"
|
# FastMmap is recommended for single-server sites
|
||||||
# and "port" are used to tell WebGUI how to connect to
|
# Memcached is recommended for multi-server sites
|
||||||
# memcached over TCP. And since this is an array you can specify
|
#
|
||||||
# as many server connections as you have memcached servers
|
# Optional keys:
|
||||||
|
# expires_variance -> Define a percentage of variance in a cache item's
|
||||||
"cacheServers" : [
|
# expiration. This prevents "cache miss stampedes" where
|
||||||
{ "socket" : "/tmp/memcached.sock", "host" : "127.0.0.1", "port" : "11211" }
|
# many things will attempt to refresh the cache at once.
|
||||||
],
|
# Set as a decimal percentage: "0.10" = 10% variance
|
||||||
|
# l1_cache -> Define a Level 1 cache, a faster cache to use for commonly-
|
||||||
|
# accessed stuff. Uses the same format and keys as the top level.
|
||||||
|
# ex:
|
||||||
|
# "l1_cache" : {
|
||||||
|
# "driver" : "Memory"
|
||||||
|
# },
|
||||||
|
# mirror_cache -> Define a write-only mirror. Used to warm up a new cache
|
||||||
|
# before switching over to it. Defined exactly like an l1_cache
|
||||||
|
#
|
||||||
|
"cache" : {
|
||||||
|
"driver" : "FastMmap",
|
||||||
|
"expires_variance" : "0.10"
|
||||||
|
},
|
||||||
|
|
||||||
# Sessions that are "hot", those that are not only not expired,
|
# Sessions that are "hot", those that are not only not expired,
|
||||||
# but that are currently active on the site are kept in memory
|
# but that are currently active on the site are kept in memory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue