Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:cache:no-plugin-concrete5 [2018/07/11 10:03]
Tihomir created
litespeed_wiki:cache:no-plugin-concrete5 [2020/09/17 19:50] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== LSCache + Concrete5 ====== +~~REDIRECT>​https:​//docs-stage.ls.com/20200902-lscache/lscache/​noplugin/​settings/​~~
- +
-LSCache, similar to Varnish cache, is a simpler and more efficient page caching solution built-in to LiteSpeed Web Server. When used in conjunction with Concrete5, you can expect significant performance gains with a quick and easy setup. Cache management is also made significantly easier and more flexible. +
- +
-Below are some recommended configurations to enable LSCache and get it working with your Concrete5 +
- +
-===== Configure Server/Virtual Host Level Cache Root And Cache Policy ===== +
- +
-Server/VirtualHost level cache storage needs to be configured properly for your environmentSelect your server setup from the **Web Server Configuration** section of our **[[litespeed_wiki:​cache:​common_installation#​web_server_configuration|LiteSpeed Cache Installation Guide]]** and follow the instructions to set the server/​virtual host level cache root and cache policy. +
- +
-===== Requirements ===== +
- +
-You will need to have installed Concrete5 on a domain or subdomain. After that create new subdomain. The document root for that new subdomain need to be the same as the main domain name. You will use the new subdomain to administrate your page as he will be not cached. That way you will avoid problems with the cache. +
- +
-For example: +
- +
-If you install Concrete5 for domain.com and it is loading from the directory **public_html**,​ the subdomain admin.domain.com need to load from **the same public_html** directory. +
- +
-===== Rewrite rules ===== +
- +
-Activate cache for the main domain with: +
- +
-<​code>​RewriteEngine On +
-RewriteCond %{REQUEST_METHOD} ^HEAD|GET$ +
-RewriteCond %{HTTP_HOST} ^domain.com [NC] [OR] +
-RewriteCond %{HTTP_HOST} ^www.domain.com [NC] +
-RewriteRule .* - [E=Cache-Control:​max-age=120]<​/code> +
- +
-After that exclude the subdomain that we will use for administration with: +
- +
-<​code>​RewriteCond %{REQUEST_METHOD} ^HEAD|GET$ +
-RewriteCond %{HTTP_HOST} ^admin.domain.com$ [NC] +
-RewriteRule .* - [E=Cache-Control:​no-cache]</code> +
- +
-===== Verify Cache Setup ===== +
- +
-Please verify to see if you can see "​X-LiteSpeed-Cache:​ hit" by following [[litespeed_wiki:​cache:​no-plugin-setup-guidline#​verify_that_pages_are_served_from_the_cache|this wiki]]. +
- +
-===== Deleting Outdated Cache Files Using A Cron Job ===== +
- +
-Please refer to [[litespeed_wiki:​cache:​no-plugin-setup-guidline#​deleting_outdated_cache_files_using_a_cron_job|this wiki]]. +
- +
-===== Notes ===== +
- +
-* For the SEO is better to disable google or other robot to index your subdomain. +
- +
-* If you have problems to open the subdomain, please check the code in your htaccess file.+
  • Admin
  • Last modified: 2018/07/11 10:03
  • by Tihomir