Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:common_installation:advanced [2016/05/05 18:12]
Michael Alegre [Cache Policy Settings]
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 |}}
  
 +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 ====
 +LiteSpeed replies on file manager to manage caches. ​ LiteSpeed uses ''​.cachemanidx.lock''​ and ''​.cachemanidx.shm''​ to manage caches.
 +
 +There is no special configuration required from user's side but a knowledge only: by default, they will be set to RAM disk under ''/​dev/​shm/​lsws/''​. RAM disk can speed up the cache management. ​  
  
 +For server level or virtual host level of cache root, normally store the actually cached files, SSD is good and recommended. ​ You should NOT use any normal hard disk. SSD is a must for your site performance. While setup such cache storage to RAM disk is normally not necessary and not much benefit either, hence not recommended.
  • Admin
  • Last modified: 2016/05/05 18:12
  • by Michael Alegre