Set a server level cache root by adding the following lines to your server level Apache config file:
<IfModule Litespeed> CacheRoot /home/lscache/ </IfModule>
The vhost level cache root is normally a per user cache root set to a subdirectory under a user's home directory.
If using a virtual host include file (as opposed to .htaccess
) a relative path can be used for “CacheRoot” such as
<IfModule LiteSpeed> CacheRoot lscache </IfModule>
If it does not exist, the cache directory will be created automatically by LiteSpeed Web Server during startup as lscache
under the user's home directory.
Notes: If different vhosts share the same document root, these vhosts have to share the same vhost level cache root directory.
The default LiteSpeed Cache settings work well with most caching scenarios. If you're configuring a shared hosting environment, don't change any of the Server Level default cache policy settings. Leave them as Not Set
.
Cache Policy: Enable Public Cache:Not Set Check Public Cache:Not Set Max Object Size:Not Set Cache Expire Time (seconds):Not Set Cache Stale Age (seconds)Not Set Cache Request with Query String:Not Set Cache Request with Cookie:Not Set Cache Response with Cookie:Not Set Ignore Request Cache-Control:Not Set Ignore Response Cache-Control:Not Set Enable Private Cache:Not Set Check Private Cache:Not Set Private Cache Expire Time (seconds):Not Set
Add the following Apache style configuration directive to .htaccess
file of a specific WordPress installation to enable cache lookup.
<IfModule LiteSpeed> CacheLookup public on </IfModule>
Note:
Please perform a graceful restart of LiteSpeed Web Server after any configuration change to the server.
For Advanced Cache Configuration info, look here.