This is an old revision of the document!
Web Cache Web Server Configuration - cPanel/WHM Single Site
Cache Storage Settings
Set Server level cache root
Create a file named “lscache.conf” with the following content in directory /usr/local/apache/conf/includes/
:
<IfModule Litespeed> CacheRoot /home/lscache/ </IfModule>
Note: It is recommended to set the server level cache root to /home/lscache/
or a disk partition with enough space. Server level cache root will only be used when vhosts cache root not set.
Then
cat /usr/local/apache/conf/includes/lscache.conf >> /usr/local/apache/conf/includes/pre_main_global.conf
Perform A Graceful Restart
After applying your cache storage settings, perform a graceful restart of LiteSpeed web server to have these changes take effect.
service lsws restart
Cache Policy Settings
Add the following Apache style configuration directive in .htaccess to enable cache lookup.
<IfModule LiteSpeed> CacheLookup public on </IfModule>
Advanced Cache Configuration
For Advanced Cache Configuration info, look here.