Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:cache:drupal [2018/01/19 19:57] Usman Nasir |
litespeed_wiki:cache:drupal [2018/01/22 21:13] Usman Nasir |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
- | This version of LiteSpeedCache requires Drupal **8.xx** or later and LiteSpeed Web Server (LSWS) **5.2.3** or later. | + | 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]]. |
===== Download ===== | ===== Download ===== | ||
Line 10: | Line 10: | ||
<code>https://github.com/litespeedtech/lscache_drupal/archive/master.zip</code> | <code>https://github.com/litespeedtech/lscache_drupal/archive/master.zip</code> | ||
+ | |||
+ | ===== Enable LiteSpeedCache using rewrite rules ===== | ||
+ | |||
+ | Create ''.htaccess'' if it doesn't exist, and add the following: | ||
+ | |||
+ | <code><IfModule LiteSpeed> | ||
+ | CacheLookup on | ||
+ | </IfModule></code> | ||
===== Install Plugin ===== | ===== Install Plugin ===== | ||
Line 21: | Line 29: | ||
<code>http://example.com/drupal/admin/modules</code> | <code>http://example.com/drupal/admin/modules</code> | ||
- | {{:litespeed_wiki:cache:enable_lscache_drupal.png?400|}} | + | {{:litespeed_wiki:cache:enable_lscache_drupal.png|}} |
- Use the search box to search for a module. | - Use the search box to search for a module. | ||
- Check the plugin checkbox. | - Check the plugin checkbox. | ||
- Click Install. | - Click Install. | ||
+ | |||
+ | ===== Configurations ===== | ||
+ | |||
+ | 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. | ||
+ | |||
+ | Go to -> http://example.com/drupal/admin/config/development/lscache | ||
+ | |||
+ | {{:litespeed_wiki:cache:lscache-drupal.png?600|}} | ||
+ | |||
+ | ==== Clear Cache ==== | ||
+ | |||
+ | **Clear this site** | ||
+ | |||
+ | This option only clears the current Drupal installation, this helps if you have multiple Drupal installations on a same virtual host. | ||
+ | |||
+ | **Clear all** | ||
+ | |||
+ | This can help you clear complete cache for this virtual host. | ||
+ | |||
+ | ==== Debug ==== | ||
+ | |||
+ | If turned on LiteSpeed cache plugin will emit extra headers for testing while developing or deploying. | ||
+ | |||
+ | ==== ESI ==== | ||
+ | |||
+ | Turn this off when you are on OpenLiteSpeed, but even if it is turned on it will not create any issues. | ||
+ | |||
+ | ==== Max Age ==== | ||
+ | |||
+ | Amount of time LiteSpeed web server will save pages in the public cache. | ||
+ | |||
+ | ==== Max Age Private ==== | ||
+ | |||
+ | Amount of time LiteSpeed web server will save pages in the private cache. | ||
+ | |||
+ | |||