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:litespeed-shared [2016/08/17 13:50]
Rob Holda [Set virtual host level cache root]
litespeed_wiki:cache:common_installation:litespeed-shared [2021/02/11 18:43] (current)
Lisa Clarke
Line 19: Line 19:
 **Notes:** If different vhosts share the same document root, these vhosts have to share the same vhost level cache root directory. **Notes:** If different vhosts share the same document root, these vhosts have to share the same vhost level cache root directory.
 ===== Cache Policy Settings =====  ===== Cache Policy Settings ===== 
-Under "Cache Policy" ​at either the Server or Virtual Host level, ​set the following: \\ \\ **Enable Public Cache** - No \\ **Check Public Cache** - Yes \\ **Ignore Request Cache-Control** - Yes \\ **Ignore Response Cache-Control** - Yes \\ \\ All other settings can be left as "Not Set"​. ​\\ \\ {{ :​litespeed_wiki:​cache:​lscwp:​lsc-settings-wp.png?​direct 800px |}}+Under **Cache Policy** at either the Server or Virtual Host level, ​leave all cache policies ​as "not set"​. ​
  
-Perform a web server graceful restart.+The following screenshot shows the cache policy settings at the virtual host level:
  
-**Note:** Shared hosting providers can selectively enable LSCache by setting **Check Public Cache** to "​No"​ at the server level (Configuration>>​Server>>​Cache>>​Cache Policy) and then adding ​the directive+{{ :litespeed_wiki:​cache:​common_installation:​virtual-host-cache-policy.png?​direct&​300 |}} 
 + 
 +Add the following Apache style configuration ​directive ​to ''​.htaccess''​ file of a specific WordPress installation to enable cache lookup.
  
 <​code>​ <​code>​
Line 31: Line 33:
 </​code>​ </​code>​
  
-to the .htaccess file of a specific WordPress installation. ​This will have the effect of turning on LSCache for only this site, allowing you to choose which sites have caching enabled.+This will have the effect of turning on LSCache for only this site, allowing you to choose which sites have caching enabled
 + 
 +**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. 
 + 
 +===== Enable .htaccess Use ===== 
 +This can be configured in both the server level and the vhost level but is more commonly done at the server level. 
 + 
 +In your LiteSpeed Web Server Web Admin, navigate to ''​Configuration > Server > General''​ and scroll to about halfway down the page. You should see an ''​HT Access''​ section. 
 + 
 +{{:​litespeed_wiki:​cache:​common_installation:​webadmin_htaccess.png?​nolink|}} 
 + 
 +You should select the checkboxes to match the screenshot above. 
 + 
 +//**Note:** if you're enabling this at the vhost level, the same settings should be listed in the LiteSpeed Web Server Web Admin under the ''​Configuration > Virtual Hosts > <Your VHost> > General''​ and the same checkboxes should be checked.//​ 
 + 
 +===== Restart LSWS ===== 
 +Please perform a graceful restart of LiteSpeed Web Server after any configuration change to the server.
  
 ===== Advanced Cache Configuration ===== ===== Advanced Cache Configuration =====
 For Advanced Cache Configuration info, **[[litespeed_wiki:​cache:​common_installation:​advanced|look here]]**. For Advanced Cache Configuration info, **[[litespeed_wiki:​cache:​common_installation:​advanced|look here]]**.
  • Admin
  • Last modified: 2016/08/17 13:50
  • by Rob Holda