How to enable LSCache without plugin


This plugin only works on the following cPanel packages:

  • Ultimate
  • WP Professional

This article describes how to install LSCache Plugin for any website.

LSCache uses advanced cache-management tools and optimization features to create an unmatched user experience, provides premium optimization features for faster page loading and improved scores on page speed measurement sites.


Add these lines to the .htaccess file in the document root of your website:

 CacheLookup on RewriteEngine On RewriteCond %{REQUEST\_URI} !/admin/ [NC] RewriteRule .* - [E=cache-control:max-age=120] 

And with that, you have just enabled caching on your site. All pages that are not in the admin subdirectory, will be cached publicly for two minutes.

This is a very basic set of rules. You can change the RewriteCond directive to include or exclude whatever pages you like. You can adjust cache-control to use private cache instead of public, or cache pages for a week (though, we don't recommend that for caching without a plugin). See Configuration for a host of more powerful examples, including some suggested settings for well-known web apps.

Verify Your Site is Being Cached

  1. Open LSCache Check Tool.

  2. Enter the URL you wish to check.

The tool will respond with an easy-to-read Yes or No result, and a display of the URL's response headers, in case you want to examine the results more closely.