This is an old revision of the document!


A block of information is incorrect when cached, How to make it accurate?

There is a delivery box showed after a size of the product being selected. Order in the next 0 day 23 hours 28 minutes for delivery on Fri 27th of October when you choose DPD Next Day Delivery at the checkout. After LiteMage enabled, it shows incorrect countdown information.

How to exclude it from LiteMage cache? Can I use Do-Not-Cache Subroutes box? No, it is not about “Do-Not_cache Subroutes”,it is about proper hole punching. If this delivery time is same for all products, then it's a public ESI block, like “footer” block. If some information for login user, then it is a private ESI block. No matter plublic or private ESI block, you will need to add a hole punching to that block and make it cache with some TTL such as 5 minutes or time you desired. So it will be accurate to 5 minutes windows/or the time windows you set.

You will need to investigate your applied module's code and see how you can hole punch it and make it an ESI block, which may need to modify some template code and layout file.

Please refer to this example on how to do an extra hole punching for required block.

You can either do it yourself if you are experienced Magento PHP developer , or simply engage us through LiteMage Premium Support. LiteMage Premium support is fully refundable if we fail to enable LiteMage cache for your site.

  • Admin
  • Last modified: 2017/10/25 14:56
  • by Jackson Zhang