Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
litespeed_wiki:cache:litemage2:crawler [2020/06/01 15:34] Jackson Zhang [Crawl Interval] |
litespeed_wiki:cache:litemage2:crawler [2020/06/16 17:05] Joshua Reynolds [Run crawler after any product update on Magento 2] |
||
---|---|---|---|
Line 65: | Line 65: | ||
===== Run crawler after any product update on Magento 2 ===== | ===== Run crawler after any product update on Magento 2 ===== | ||
- | In Magento 2, any product update will trigger all caches purged by the design of Magento 2. LiteMage doesn't have any control of this Magento 2 designed behavior. Hence you may find pages uncached even you run above crawl interval less than TTL. It doesn't mean LiteMage 2 doesn't work well or Crawler doesn't work well. It is simply a Magento 2 design matter. | + | In Magento 2, any product update will trigger all caches purged by the design of Magento 2. LiteMage doesn't have any control of this Magento 2 designed behavior. Therefore you may find pages uncached even you run above crawl interval less than TTL. It doesn't mean LiteMage 2 doesn't work well or Crawler doesn't work well. It is simply a Magento 2 design matter. |
- | To avoid above situation, we would recommend you schedule a specific windows to do any product changes through Magento admin. For example, two hours from 6:00pm to 8:00pm offpeak time. Then you run the crawler immediately after the change. | + | To avoid the above situation, we would recommend you schedule a specific window of time to do any product changes through Magento admin. For example, two hours from 6:00pm to 8:00pm off-peak time. Then you run the crawler immediately after the change and the likelihood of users encountering uncached pages is kept to a minimum. |
===== How to Verify the Crawler is Working ===== | ===== How to Verify the Crawler is Working ===== | ||
When using [[https://developers.google.com/web/tools/chrome-devtools/|the browser developer tool]], load a previously uncached page. You should see ''X-LiteSpeed-Cache: hit,litemage'' on the first view. | When using [[https://developers.google.com/web/tools/chrome-devtools/|the browser developer tool]], load a previously uncached page. You should see ''X-LiteSpeed-Cache: hit,litemage'' on the first view. | ||
{{:litespeed_wiki:cache:litemage2:m2-3.png?600|}} | {{:litespeed_wiki:cache:litemage2:m2-3.png?600|}} |