Limit lscache per Cpanel package

#1
Hello,

I'm using lscache with WHM/Cpanel. Is it possible limit lscache feature only available for some cpanel accounts only?

Thanks.
 

Jon K

Administrator
Staff member
#4
We recently added functionality that would disable cache at the server level but enable it on a per-vhost level.

You will want to add the following pre_main_global.conf
Code:
<IfModule LiteSpeed>
CacheRoot /home/lscache/
CacheEngine off
LiteMage off
</IfModule>
Then for each vhost you will want to create an include file that has the following:
Code:
<IfModule LiteSpeed>
CacheRoot lscache
CacheEngine on crawler esi
LiteMage on
</IfModule>
You can change what you want to enable on a per-vhost level, just remove or turn off what you do not want to work.
 
Top