To enable LSCache, add the following code at the beginning of the .htaccess file in the folder where WordPress is installed:

<IfModule LiteSpeed>
CacheEnable public /
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(HEAD|GET)$
RewriteCond %{REQUEST_URI} !^(wp-admin|wp-login.php|wp-cron.php)
RewriteRule .* - [E=Cache-Control:max-age=120]
</IfModule>
Was this answer helpful? 0 Users Found This Useful (0 Votes)