ASPX templates
Version 5.x > ASPX templates > Partial caching View modes: 
User avatar
Member
Member
Jimmy - 2/23/2011 4:22:52 PM
   
Partial caching
In the header of all the pages in our site we have a region that shows how many items users have in their shopping cart, plus the total price and finally a "Checkout" button. Obviously these items cannot be cached, so full page caching isn't an option. However on many pages in the site, the shopping cart at the top of the page is the only dynamic content that is likely to change regularly, so I'd definitely like to make use of some caching functionality.

Is it possible to use partial caching with ASPX templates? The documentation for this discusses only web parts, so I presume this functionality is only available when using the Portal Template engine. If that's the case, what are the possibilities for caching when using ASPX templates?

Cheers,
Jimmy

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 3/7/2011 7:47:54 AM
   
RE:Partial caching
Hello,


The partial cache relates only to web parts in web part zones in portal engine mode. The partial cache properties are not supported when the web part is used as a standard user control in your own code. If you want to use the partial caching in ASPX mode, you need to use the standard Output cache for controls: http://msdn.microsoft.com/en-us/library/h30h475z.aspx


Best regards,
Helena Grulichova