This is an old revision of the document!


Why Are Some Pages Cached While Others Are Not?

After you enable LiteMage, you may see that most of the pages are cached but some are not. This sometimes happens with brand pages.

LiteMage has a default system-defined cachable route. Extra routes may need to be added for some pages in order to include them in the cache.

Please check the configuration of the system-defined cache route and the user-defined cache rules.

Enable the debug log (normally at var/log/system.log)

Then browse the pages/categories with issues from browser, you may see something like the following in the log:

 
2017-02-21T14:55:31+00:00 DEBUG (7): LiteMage [xx.xx.xx.xx:26072:29461700] ****** PRECHECK route_action [brand_brand_index] /brand/ NO_CACHE=route not cacheable
2017-02-21T15:30:21+00:00 DEBUG (7): LiteMage [xx.xx.xx.xx:37765:19171300] ****** ****** PRECHECK route_action [brand_brand_view] /brand/sorciere.html NO_CACHE=route not cacheable

or

 
2017-10-24T18:01:01+00:00 DEBUG (7): LiteMage [141.101.64.214:13298:03896300] ****** PRECHECK route_action [mana_optionPage_view] /lowa/product-type/footwear/size/4-6.5/sort-by/position/sort-direction/desc/mode/list NO_CACHE=route not cacheable
2017-10-24T18:01:43+00:00 DEBUG (7): LiteMage [198.41.235.82:30180:84549400] ****** PRECHECK route_action [mana_attributePage_view] /brand NO_CACHE=route not cacheable

You should be able to get the above log through:

 cd var/log
 grep "route not cacheable" system.log 

The log shows routes brand_brand_index and brand_brand_view or mana_optionPage_view and mana_attributePage_view are not in the system default-enabled cache routes and should be added manually. Navigate to LiteMage Config > User-Defined Cache Rules > Cacheable Routes and add the missing routes: brand_brand_view and brand_brand_index or mana_optionPage_view and mana_attributePage_view or something similar as log indicated.

Issues can still arise after completing the above steps if the URL is not a standard category or product page, as the cached URLs will not be tagged properly. For example, if a product within the brand page is updated, the standard Magento categories and product pages will be auto-purged, but the brand page will not. To resolve this issue, define a custom warm-up URL list that will crawl these pages in more frequent intervals, such as every 30 minutes.

See Caching Additional URLs for more details.

  • Admin
  • Last modified: 2017/10/24 18:15
  • by Jackson Zhang