CacheConfig.properties
CacheConfig.properties
contains the following properties:
cacheHeaderEnabled
-
This parameter controls external caching by determining whether or not an HTTP cache header is added to non-empty change log responses. Set to
true
(the default) to enable caching orfalse
to disable it. You can usually set this tofalse
for the editorial change log, since the number or requests from editorial clients is not likely to be very high and external caching is therefore not required. maxAge
-
If
cacheHeaderEnabled
is set totrue
, then this property determines the HTTP cache header'smax-age
parameter (which sets the external cache's lifetime) for non-empty responses. It is specified in seconds. The default setting is2
. Increase this value to reduce load on the server and database, decrease it to reduce latency. emptyResponseMaxAge
-
If
cacheHeaderEnabled
is set totrue
, then this property determines the HTTP cache header'smax-age
parameter (which sets the external cache's lifetime) for empty responses. It is specified in seconds. The default setting is0
– in other words, caching is disabled by default for empty responses. Increase this value to reduce load on the server and database, decrease it to reduce latency. accessModifier
-
If
accessModifier
is set toprivate
, then this property indicates that all or part of the response message is intended for a single user and that it therefore must not be cached by a shared cache such as a proxy server. By default, this property is set topublic
. cachingEnabled
-
This parameter controls internal caching. Set to
true
(the default) to enable caching, orfalse
to disable it. cacheLife
-
If
cachingEnabled
is set totrue
, then this property determines the internal cache's lifetime, specified in milliseconds. The default setting is250
. Increase this value to reduce load on the server and database. Increase this value to reduce load on the server and database, decrease it to reduce latency.