This is an old revision of the document!


Web Cache Web Server Settings - cPanel Single Site

Cache Storage Settings

Set Server level of cache root

Using an Apache configuration file, the server level cache root is set by adding the following to your server level Apache config file:

<IfModule Litespeed>
CacheRoot /tmp/lscache
</IfModule>

Note: make sure /tmp/lscache exists and server readable/writeable (nobody:nobody for cPanel). CacheRoot is an absolute path for server level setting.

Cache Policy Settings

Under “Cache Policy” at either the Server or Virtual Host level, set the following:

Enable Public Cache - No
Check Public Cache - Yes
Ignore Request Cache-Control - Yes
Ignore Response Cache-Control - Yes

All other settings can be left as “Not Set”.

For vhosts configured through Apache httpd.conf, you may need to following Apache style configuration directive in .htaccess to enable cache lookup.

<IfModule LiteSpeed>
   CacheLookup public on
</IfModule>
Perform a Graceful Restart

Perform a web server graceful restart.

  • Admin
  • Last modified: 2016/05/03 15:02
  • by Michael Alegre