Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In SharePoint we can clear the object cache from Site Collection Administration - Site collection object cache

Is there a way to do the same programmatically?

share|improve this question
add comment

2 Answers

I know Serge van den Oever have found a way to do this (in SP2007), but since some of the classes and methods you need to call are internal, you need to use reflection to get it working.

http://weblogs.asp.net/soever/archive/2009/06/19/sharepoint-wcm-flushing-publishing-pages-from-the-cache.aspx

NB: The publishing framework have been reworked alot in SP2010, so it might have changed alot.

A quick look in the API only gave this: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.publishingcache.flushblobcache.aspx

So its likely that this is still internal methods

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.