Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
litespeed_wiki:cache:litemage:troubleshooting:new-hole-punch-require-for-some-block [2017/10/25 14:55]
Jackson Zhang
litespeed_wiki:cache:litemage:troubleshooting:new-hole-punch-require-for-some-block [2017/10/25 14:56]
Jackson Zhang
Line 5: Line 5:
  {{ :​litespeed_wiki:​cache:​litemage:​troubleshooting:​make-a-block-information-accurate.jpg?​800 |}}  {{ :​litespeed_wiki:​cache:​litemage:​troubleshooting:​make-a-block-information-accurate.jpg?​800 |}}
  
-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, than 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.+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. 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.
  • Admin
  • Last modified: 2017/10/25 15:28
  • by Lisa Clarke