Page Cache Settings
 
Table of Contents
Cache Storage Setting Storage Path   Max Object Size   
Cache Policy Enable Cache   Cache Expire Time (Seconds)   Cache Stale Age (Seconds)   Cache Request with Query String   Cache Request with Cookie   Cache Response with Cookie   Ignore Request Cache-Control   Ignore Response Cache-Control   Enable Private Cache   Private Cache Expire Time (Seconds)   
Do-Not-Cache URL No Cache URL   
Do-Not-Cache Domains No Cache Domain   
 
Storage PathGo to top
Description: Specify the directory that holding cached objects. It should be a directory. Currently LiteSpeed cache store each object in its own file, the file name is a hash of the object key, multiple level of directories will be created in order to avoid holding too many files in one directory. Value must be set in order to enable cache feature.
Syntax: Select from drop down list
Tips: [performance] Assign a dedicate disk or disk array as the cache storage. RAID0 is recommended.
Max Object SizeGo to top
Description: Specify the maximum size of an object can be stored in the cache. directory. Default value is 128KB.
Syntax: Integer number
Tips: [Performance] It is not recommended to store large objects with low hit rate into the cache. It may result in high I/O wait and reduce overall server performance.
Enable CacheGo to top
Description: Specify whether to turn on cache for current context, either at server level, virtual host level or directory level.
Virtual hosts configured through Apache httpd.conf can use "CacheEnable", "CacheDisable" directives at server, virtualhost, directory, files, location level or in .htaccess. When used at directory level or in .htaccess, "CacheEnable", "CacheDisable" will be applied to all directory below current level. "CacheEnable" "CacheDisable" directives are compatible with Apache mod_cache directives. However, when used at directory, files, location level or in a .htaccess, "CacheEnable", "CacheDisable" will only be applied to all directories below current level, url parameter will be ignored.
Syntax: Integer number
Tips: [Performance] It is not recommended to store large objects with low hit rate into the cache. It may result in high I/O wait and reduce overall server performance.
Cache Expire Time (Seconds)Go to top
Description: Specify how long the object will be cached. Default is 86400 seconds (one day).
Syntax: Integer number
Cache Stale Age (Seconds)Go to top
Description: Specify how long the object can still be served after expired and before the new one available. Default is 10 seconds.
Syntax: Integer number
Cache Request with Query StringGo to top
Description: Specify whether to cache a request with Query String in the URL. Default is no cache. When URL rewrite is involved, the rewriten URL will be checked against.
Syntax: Select from drop down list
Cache Request with CookieGo to top
Description: Specify whether to cache a request containing cookie. Default is no cache.
Syntax: Select from drop down list
Cache Response with CookieGo to top
Description: Specify whether to cache a response containing cookie. Default is no cache.
Syntax: Select from drop down list
Ignore Request Cache-ControlGo to top
Description: Specify whether to ignore "Cache-Control" request header. Default is no. If set to yes, server may serve cached object when "no-cache" has been set in "Cache-Control".
Syntax: Select from drop down list
Ignore Response Cache-ControlGo to top
Description: Specify whether to ignore "Cache-Control" response header. Default is no. If set to yes, response can be cached by server even when "No-store", "private" has been set in "Cache-Control" header.
Syntax: Select from drop down list
Enable Private CacheGo to top
Description: Specify whether to turn on private cache for current context, either at server level, virtual host level or directory level.
Private cache will cache a copy per user based on IP and cookies.
Virtual hosts configured through Apache httpd.conf can use "CacheEnable private /url", "CacheDisable private /url" directives at server, virtualhost, directory, files, location level or in .htaccess. When used at directory level or in .htaccess, "CacheEnable private", "CacheDisable private" will be applied to all directory below current level. However, when used at directory, files, location level or in a .htaccess, "CacheEnable private", "CacheDisable private" will be applied to all directories below current level, url parameter will be ignored.
Syntax: Integer number
Tips: [Performance] It is not recommended to store large objects with low hit rate into the cache. It may result in high I/O wait and reduce overall server performance.
Private Cache Expire Time (Seconds)Go to top
Description: Specify how long the object will be cached in private cache. Default is 60 seconds.
Syntax: Integer number
No Cache URLGo to top
Description: A list of URL segments that will not be cached. Any URL that contains those listed segments will not be cached. Regular string match will be used and regular expression is not supported. You can add comments by starting a line with "#", the whole line will be treated as comment and ignored. This feature is only available at server level
No Cache DomainGo to top
Description: A comma-separated list of domains that will not be cached. Domain name is case insensitive and the leading "www." will be removed. The wildcard characters "*" and "?" are allowed, "?" only matches one character, "*" matches any numbers of characters. For example, "*.mydomain.com" will match all subdomains of mydomain.com. Duplicated domain names are not allowed. This feature is only available at server level.
Syntax: comma-separated list.