Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:cache:common_installation:litespeed-shared [2016/09/30 15:04] Rob Holda [Cache Policy Settings] |
litespeed_wiki:cache:common_installation:litespeed-shared [2021/02/09 19:48] 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, leave all cache policies as "not set". {{ :litespeed_wiki:cache:common_installation:cachepolicynative.png?nolink&300 |}} | + | Under **Cache Policy** at either the Server or Virtual Host level, leave all cache policies as "not set". |
+ | |||
+ | Here is what **Cache Policy** set up looks like at the Virtual Host level: | ||
+ | |||
+ | {{ :litespeed_wiki:cache:common_installation:cachepolicynative.png?nolink&300 |}} | ||
Add the following Apache style configuration directive to ''.htaccess'' file of a specific WordPress installation to enable cache lookup. | Add the following Apache style configuration directive to ''.htaccess'' file of a specific WordPress installation to enable cache lookup. | ||
Line 30: | Line 34: | ||
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:** | ||
- | * **"Enable Public Cache"** should always be "Not Set" or "No" unless you want to enable cache globally, which is definitely not recommended. | ||
- | * **Check Public Cache** better set to "Not Set" but should never be "No" otherwise it will turn off the cache lookup and LScache won't work. | ||
===== Enable .htaccess Use ===== | ===== Enable .htaccess Use ===== | ||
Line 44: | Line 44: | ||
You should select the checkboxes to match the screenshot above. | 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. | + | //**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 ===== | ===== Restart LSWS ===== | ||
Please perform a graceful restart of LiteSpeed Web Server after any configuration change to the server. | Please perform a graceful restart of LiteSpeed Web Server after any configuration change to the server. |