Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:cache:common_installation:advanced [2017/12/21 19:57] Jackson Zhang [Cache Manager files] |
litespeed_wiki:cache:common_installation:advanced [2021/02/11 18:45] (current) Lisa Clarke [Cache Policy Settings] |
||
---|---|---|---|
Line 8: | Line 8: | ||
</code> | </code> | ||
- | **Note:** Be careful not to use the same cache directory for two accounts as this is likely to cause trouble. | + | **Note1:** Be careful not to use the same cache directory for two accounts as this is likely to cause trouble. |
+ | **Note2:** There is not much benefit to setup cache root to RAM disk hence usually not recommended. | ||
==== Setting Virtual Host Cache Root Using Variables ==== | ==== Setting Virtual Host Cache Root Using Variables ==== | ||
LiteSpeed Web Server supports variables in the Virtual Host cache root configuration when using an Apache configuration file. For example: | LiteSpeed Web Server supports variables in the Virtual Host cache root configuration when using an Apache configuration file. For example: | ||
Line 25: | Line 25: | ||
==== Cache Policy Settings ==== | ==== Cache Policy Settings ==== | ||
- | You can fine tune your cache policy settings at the Server,Virtual Host, or Context level by logging in to the LiteSpeed Web Server WebAdmin Console and navigating to | + | You can fine tune your cache policy settings at the Server, Virtual Host, or Context level by logging into the LiteSpeed Web Server WebAdmin Console and navigating to |
- | Server Level: **Configuration** >> **Server** >> **Cache** | + | Server Level: **Configuration > Server > Cache**: |
+ | {{ :litespeed_wiki:cache:common_installation:server-level-cache-policy.png?direct&300 |}} | ||
- | Virtual Host Level: **Configuration** >> **Virtual Hosts** >> **<vh_name>** >> **Cache** | + | Virtual Host Level: **Configuration > Virtual Hosts > [vh_name] > Cache**: |
- | Context Level: **Configuration** >> **Virtual Hosts** >> **<vh_name>** >> **Context** >> **<context_name>** | + | {{ :litespeed_wiki:cache:common_installation:virtual-host-cache-policy.png?direct&300 |}} |
- | {{ :litespeed_wiki:cache:cache-settings-page.png?direct&800 |}} | + | Context Level: **Configuration > Virtual Hosts > [vh_name] > Context > [context_name]**. |
As our default settings work well with most caching scenarios, it is not common to have to change any of these settings. | As our default settings work well with most caching scenarios, it is not common to have to change any of these settings. | ||
+ | **NOTE**: The **Publicly Cache All** and **Private Cache All** settings are not available at the server level, as it is strongly recommended that you //not// enable caching server-wide. If you have a need for global caching, you may configure a Context for that purpose. | ||
==== Cache Manager files ==== | ==== Cache Manager files ==== | ||
LiteSpeed replies on file manager to manage caches. LiteSpeed uses ''.cachemanidx.lock'' and ''.cachemanidx.shm'' to manage caches. | LiteSpeed replies on file manager to manage caches. LiteSpeed uses ''.cachemanidx.lock'' and ''.cachemanidx.shm'' to manage caches. |