Limit lscache per Cpanel package

Discussion in 'LiteSpeed Cache General' started by Hien, Jul 19, 2017.

  1. Hien

    Hien Member

    Hello,

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

    Thanks.
     
  2. NiteWave

    NiteWave Administrator

    Hien likes this.
  3. Hien

    Hien Member

  4. Jon K

    Jon K Administrator Staff Member

    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.
     
    Hien likes this.

Share This Page