PartCacheInvalidate() Method
The PartCacheInvalidate() method of the WebPart class marks all the contents of the Web Part cache as outdated.
Remarks
Calling the PartCacheInvalidate() method, which passes no arguments, marks all of the contents of the Web Part cache as outdated. Call the PartCacheInvalidate(Microsoft.SharePoint.WebPartPages.Storage) method to mark all content of the specified storage type in the Web Part cache as outdated. Call the PartCacheInvalidate(Microsoft.SharePoint.WebPartPages.Storage, String) method to mark only the specified cached value of the specified storage type in the Web Part cache as outdated.
Example
The following code example shows a Web Part that caches and displays the time when it is first rendered, and provides a button to refresh the Web Part cache with the current time.
Requirements
Platforms: Windows Server 2003
Security: Code Access Security