Parameter wise Caching in Web blocks
999
Views
5
Comments
Implemented
Frontend

We can have parameter wise caching in web blocks same as varybyparam in usercontrols in asp.net .So that data can be cached against the input  parameter of web block


Justin James
mvp_badge
MVP

This already exists:

Johan den Ouden
mvp_badge
MVP

Caching of the webblock already depends on the input parameters. If they are different no caching is done and the webblock renders again.

If they are the same the webblock is given back from the cache.

Hi Justin and Johan,

What if i want to cache a web block by any specific Input parameter  For ex a Web Block  A has 2 input parameters INP1 and INP2 i want caching only depend on INP1.  

There should be a option of Caching Input parameter where we can assign it

Regards

Devendra





 


Johan den Ouden
mvp_badge
MVP

What you can do, if possible, is make new webblock inside this webblock which uses the inp1 parameter and cache that webblock. Than put no cache on the first webblock.


Hope you can do this.

Changed the category to
Frontend
and the status to
Implemented
on 09 Jul 2015

As Justin James and Johan den Ouden were kind enough to point out, the requested capability is already in the product. Going to classify the idea as "Implemented".