Differences

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

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:cache:litemage2:crawler [2018/07/27 15:37]
Eric Leu created
litespeed_wiki:cache:litemage2:crawler [2020/07/08 19:35] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== LiteSpeed Cache for Magento2: Crawler ====== +~~REDIRECT>​https://docs.litespeedtech.com/​lscache/litemage/settings/~~
- +
-The crawler travels through your site, refreshing pages that have expired in the cache. This makes it less likely that your visitors will encounter un-cached pages. +
- +
-===== Before You Begin ===== +
-  - Install and enable [[https://www.litespeedtech.com/​support/wiki/doku.php/litespeed_wiki:​cache:​litemage2:​installation | LiteMage Cache for Magento2]] +
-  - Crawler Engine: The crawler must be enabled at the server level, or you will see the warning message ''​Server crawler engine not enabled. Please check....''​. If you are using a shared hosting server, please contact your hosting provider, or see [[litespeed_wiki:​cache:​lscwp:​configuration:​enabling_the_crawler|our instructions]]. +
-  - SiteMap: Prepare your site's sitemap, e.g. ''<​nowiki>​http://​magento2.com/​sitemap.xml</​nowiki>''​ +
- +
-===== How to Use Crawl script===== +
-[[ | Download from here]] +
- +
-Change the permissions so that the file is executable:​ +
-''​chmod +x cachecrawler.sh''​ +
- +
-==== Crawl Desktop&​mobile share same theme==== +
-''​sh M2-crawler.sh SITE-MAP-URL''​ +
- +
-==== More Options==== +
-  * To get help: ''​sh M2-crawler.sh -h''​ +
-  * To change default interval request from 0.1s to custom NUM value: ''​sh M2-crawler.sh SITE-MAP-URL -i NUM''​ +
- +
-===== How to Generate a Sitemap===== +
-The Sitemap module is build-in for generating a sitemap in Magento 2, and it's fast.  +
- +
-==== Enable sitemap ==== +
-Navigate to Magento admin page -> Stores -> Settings -> Configuration -> Catalog -> XML Sitemap \\ +
-{{:​litespeed_wiki:​cache:​litemage2:​m2-4.png?​600|}} \\ +
- +
-Set Generation Settings Enabled to ''​Yes''​ \\ +
-{{:​litespeed_wiki:​cache:​litemage2:​m2-5.png?​600|}} +
- +
-==== Configuring a single sitemap for all storefronts ==== +
-Navigate to Magento admin page -> Marketing -> Seo & Search -> Sitemap +
-  - Click **Add Sitemap** button +
-  - Enter value +
-    * Filename: ''​sitemap.xml''​ +
-    * Path: ''/''​ +
-  - Click **Save & Generate** button +
- +
-{{:​litespeed_wiki:​cache:​litemage2:​m2-2.png?​600|}} \\ +
-If all went well, a sitemap.xml file will generated in your magento 2 document root. +
- +
-===== How to Verify ===== +
-By using [[https://​developers.google.com/​web/​tools/​chrome-devtools/​ | the browser developer tool]], you should see ''​X-LiteSpeed-Cache:​ hit,​litemage''​ at the first view \\ +
- +
-{{:​litespeed_wiki:​cache:​litemage2:​m2-3.png?​600|}}+
  • Admin
  • Last modified: 2018/07/27 15:37
  • by Eric Leu