Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
litespeed_wiki:cache:common_installation:shared-enable-individually [2019/04/17 13:42] Jackson Zhang |
litespeed_wiki:cache:common_installation:shared-enable-individually [2020/02/20 16:04] (current) Jackson Zhang [CacheEngine on/off directives] |
||
---|---|---|---|
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: |