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:shared-enable-individually [2017/11/21 14:14] Jackson Zhang [Enabling Cache for an Individual Virtual Host] |
litespeed_wiki:cache:common_installation:shared-enable-individually [2020/02/20 16:04] (current) Jackson Zhang [CacheEngine on/off directives] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Enabling Cache for an Individual Virtual Host ====== | + | ====== Enabling Cache/ESI/Crawler for an Individual Virtual Host ====== |
A shared hosting provider may want to maintain server-wide control over the enabling and disabling of cache-related services. These services include caching itself as well as the ESI and Crawler functions available with our WordPress LSCache Plugin. By disabling the cache globally and enabling it for a particular virtual host, shared hosting providers may offer LSCache as an add-on service to their customers. | A shared hosting provider may want to maintain server-wide control over the enabling and disabling of cache-related services. These services include caching itself as well as the ESI and Crawler functions available with our WordPress LSCache Plugin. By disabling the cache globally and enabling it for a particular virtual host, shared hosting providers may offer LSCache as an add-on service to their customers. | ||
Line 10: | Line 10: | ||
To disable cache: | To disable cache: | ||
+ | <IfModule Litespeed> | ||
CacheEngine off | CacheEngine off | ||
+ | </IfModule> | ||
+ | |||
| | ||
To enable cache, esi and crawler: | To enable cache, esi and crawler: | ||
+ | <IfModule Litespeed> | ||
CacheEngine on esi crawler | CacheEngine on esi crawler | ||
+ | </IfModule> | ||
| | ||
To enable cache, but neither esi nor crawler: | To enable cache, but neither esi nor crawler: | ||
+ | <IfModule Litespeed> | ||
CacheEngine on | CacheEngine on | ||
+ | </IfModule> | ||
===== Examples: cPanel ===== | ===== Examples: cPanel ===== | ||
To disable cache globally, add the directive to the ''/usr/local/apache/conf/includes/pre_main_global.conf'' file for EA3 or the ''/etc/apache2/conf.d/includes/pre_main_global.conf'' file for EA4. It should be placed within ''<IfModule Litespeed> .. </IfModule>'', right after the CacheRoot configuration, like so: | To disable cache globally, add the directive to the ''/usr/local/apache/conf/includes/pre_main_global.conf'' file for EA3 or the ''/etc/apache2/conf.d/includes/pre_main_global.conf'' file for EA4. It should be placed within ''<IfModule Litespeed> .. </IfModule>'', right after the CacheRoot configuration, like so: |