Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
litespeed_wiki:cache:drupal [2018/01/22 20:05] Usman Nasir |
litespeed_wiki:cache:drupal [2018/01/22 21:43] Lisa Clarke Proofreading |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | After Drupal 7 a lot has changed in Drupal 8. They have converted from procedural programming to Object-Oriented Programming. Drupal 8 has built-in Page Cache (for static Content) and Dynamic Page Cache for (for logged in user). Which basically work as reverse proxy written in PHP. Built in the proxy is good in case you have no other options, however, with LiteSpeed Cache plugin there is a great improvement in performance for your Drupal 8 Site. | + | ====== LSCache for Drupal ====== |
+ | |||
+ | Drupal 8 is significantly changed from Drupal 7. They have converted from procedural programming to object-oriented programming. Drupal 8 has a built-in page cache (for static content) and a dynamic page cache for logged in users. The latter basically works as a reverse proxy written in PHP. The built-in proxy is good if you have no other options, however, with the LiteSpeed Cache plugin you will see a great improvement in performance for your Drupal 8 site. | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | This version of LiteSpeedCache requires Drupal **8.xx** or later and LiteSpeed Web Server (LSWS) **5.2.3** or later. [[litespeed_wiki:installation:drupal_installation|Guide to install Drupal on standalone LiteSpeed Webserver]]. | + | This version of LiteSpeed Cache requires Drupal **8.xx** or later and LiteSpeed Web Server (LSWS) **5.2.3** or later. See our [[litespeed_wiki:installation:drupal_installation|Guide for Installing Drupal on a Standalone LiteSpeed Web Server]]. |
===== Download ===== | ===== Download ===== | ||
- | Download LiteSpeed Cache Module to your local computer from: | + | Download the LiteSpeed Cache module to your local computer from [[https://github.com/litespeedtech/lscache_drupal/archive/master.zip|our GitHub repository]]. |
- | + | ||
- | <code>https://github.com/litespeedtech/lscache_drupal/archive/master.zip</code> | + | |
===== Enable LiteSpeedCache using rewrite rules ===== | ===== Enable LiteSpeedCache using rewrite rules ===== | ||
Line 21: | Line 21: | ||
===== Install Plugin ===== | ===== Install Plugin ===== | ||
- | Once you have downloaded the plugin, you can install by visiting | + | Once you have downloaded the plugin, you can install it by visiting |
<code>http://example.com/admin/modules/install</code> | <code>http://example.com/admin/modules/install</code> | ||
- | Using the browse button you can upload the plugin you just downloaded and start the installation. Once installed enable plugin by going to: | + | Using the browse button you can upload the plugin you just downloaded and start the installation. Once installed, enable the plugin by going to: |
- | <code>http://example.com/drupal/admin/modules</code> | + | <code>http://example.com/admin/modules</code> |
- | {{:litespeed_wiki:cache:enable_lscache_drupal.png|}} | + | {{:litespeed_wiki:cache:enable_lscache_drupal.png?800|}} |
- Use the search box to search for a module. | - Use the search box to search for a module. | ||
- | - Check the plugin checkbox. | + | - Check the checkbox next to **LiteSpeed Cache**. |
- Click Install. | - Click Install. | ||
- | ===== Configurations ===== | + | ===== Configuration ===== |
- | This step is optional, once the plugin is activated your cache is already up and running, but on configuration screen, you can customize few settings. | + | This step is optional. Once the plugin is activated, your cache is already up and running, but on the configuration screen, you can customize few settings. |
- | Go to -> http://example.com/drupal/admin/config/development/lscache | + | Go to |
+ | |||
+ | <code>http://example.com/admin/config/development/lscache</code> | ||
{{:litespeed_wiki:cache:lscache-drupal.png?600|}} | {{:litespeed_wiki:cache:lscache-drupal.png?600|}} | ||
Line 45: | Line 47: | ||
==== Clear Cache ==== | ==== Clear Cache ==== | ||
- | **Clear this site** | + | ===Clear this site=== |
- | This option only clears the current Drupal installation, this helps if you have multiple Drupal installations on a same virtual host. | + | This option only clears the current Drupal installation. This helps if you have multiple Drupal installations on the same virtual host. |
- | **Clear all** | + | ===Clear all=== |
- | This can help you clear complete cache for this virtual host. | + | This button clears the //entire// LiteSpeed cache for this virtual host. This includes any other web apps using LSCache (WordPress, XenForo, etc.) on this vhost. |
==== Debug ==== | ==== Debug ==== | ||
- | If turned on LiteSpeed cache plugin will emit extra headers for testing while developing or deploying. | + | If turned on, LiteSpeed Cache will emit extra headers for testing while developing or deploying. |
==== ESI ==== | ==== ESI ==== | ||
- | Turn this off when you are on OpenLiteSpeed, but even if it is turned on it will not create any issues. | + | OpenLiteSpeed doesn't support ESI, although it does no harm to keep it turned on. |
==== Max Age ==== | ==== Max Age ==== | ||
Line 69: | Line 71: | ||
Amount of time LiteSpeed web server will save pages in the private cache. | Amount of time LiteSpeed web server will save pages in the private cache. | ||
- | ===== Benchmarks ===== | + |