Knowledgebase: Web Hosting > Litespeed > Page Caching
Enable Litespeed Page Cache On Wordpress
Posted by Tony B., Last modified by Brian F. on 22 September 2016 12:53 PM

Please refer to our blog post onĀ how to enable Litespeed Cache for Wordpress for a comprehensive guide on installing the Wordpress plugin.

You can also enable Litespeed page cache on any Wordpress web site by adding the following code to the top of your .htaccess file:

<IfModule LiteSpeed>
CacheEnable public /
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(wp-admin|wp-login.php|wp-cron.php)
RewriteRule .* - [E=Cache-Control:max-age=120]

This will cache all requests for 120 seconds improving page loading times and reducing resource usage.

(10 vote(s))
Not helpful

Comments (2)
Subadri ,-
24 July 2015 05:14 AM
Is there any impact if i insert those code into my .htaccess?
Impact i mean is web disk, bandwith, security, or anything else.
27 July 2015 10:26 AM
There is absolutely no impact on your account by utilizing the rewrite rules. It does not use more disk space, bandwidth. It does not have any impact on the security of your site.

This feature would only have an impact if your wordpress was extremely dynamic where you had new posts every few seconds. Otherwise caching your pages for 120 seconds will do nothing but improve performance.
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).