ASPX templates
Version 5.x > ASPX templates > Cache View modes: 
User avatar
Member
Member
seanbun - 5/3/2011 1:48:14 AM
   
Cache
Hi,

I have a problem on the web part cache. Basically, I have turned on the Full-page caching for the whole site. I have a item counter on the master page which I do not want to it to be cached. I wrapped the item counter in a web page and set the cache minutes to 0. I thought this would override the full-page cache setting.

However, when I tested this set up, I found the item counter was still cached. Did I miss anything? Please advise.

Cheers,
Matt

User avatar
Member
Member
seanbun - 5/3/2011 8:28:24 PM
   
RE:Cache
More information, I am using

1. version 5.0.3784
2. ASPX Template

Cheers,
Matt

User avatar
Member
Member
seanbun - 5/3/2011 8:59:14 PM
   
RE:Cache
I found the answer. In my case, I should use global caching setting instead of full-page caching. Full page caching would skip executing the code and ask for the HTML output directly from the cache.

In term of performance, is full-page caching the most effective, comparing with cache content?

User avatar
Member
Member
kentico_michal - 5/4/2011 2:36:40 AM
   
RE:Cache
Hello Matt,

Full-page caching represents the most powerful option. It caches the whole page, so it's not necessary to contact the SQL Server and run the page code again when the page is requested second time. However, it is not suitable for pages components that need to be refreshed very often.
I would recommend reading following section of Developer’s guide to get more information about Caching options

If you need more information about caching, please also read following blog post: Cache dependencies


Best regards,
Michal Legen