Jawad Khan

Jawad's Lodge - The willingness to torture yourself before others is what makes a developer truly a unique breed.
posts - 45, comments - 150, trackbacks - 155

My Links

News

Archives

Post Categories

Image Galleries

Invalidating ASP.Net Output Cache (Template) when new Content is Imported

Recently in a project I wanted to make sure that my ASP.Net Output Cache is cleared when I import new Content in to the Production Environment. After a little research I found it it's not that hard. In MCMS 2001 Microsoft used to have an API call called ServerCountChanged or something similiar. In MCMS 2002 there is no such call but there is an Event that we can hook into ....

Microsoft.ContentManagement.We­b.Caching.CmsHttpCachePolicy.C­urrent.AddValidationCallbackAl­lCmsContent();

This willl have the same effect as in the older version with
ServerCount variable i.e. all the cache wil be dumped as soon as any
thing changes on MCMS

Print | posted on Thursday, May 12, 2005 10:49 PM | Filed Under [ Microsoft Content Management Server ]

Feedback

No comments posted yet.
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 

Powered by: