다음을 통해 공유


CacheRefresh Event

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Occurs when one or more caches are refreshed.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Shared Event CacheRefresh As EventHandler(Of SiteCacheRefreshEventArgs)
'Usage
Dim handler As EventHandler(Of SiteCacheRefreshEventArgs)

AddHandler SiteCacheRefresh.CacheRefresh, handler
public static event EventHandler<SiteCacheRefreshEventArgs> CacheRefresh
public:
static  event EventHandler<SiteCacheRefreshEventArgs^>^ CacheRefresh {
    void add (EventHandler<SiteCacheRefreshEventArgs^>^ value);
    void remove (EventHandler<SiteCacheRefreshEventArgs^>^ value);
}
JScript does not support events.

Remarks

This event is raised when a cache is refreshed. The following caches will raise this event:

  • CatalogCache to refresh all catalog caches.

  • CommerceCaches to refresh all site caches configured in web.config.

  • SiteTermCache to refresh the site term cache.

  • ProfileCache to refresh all profiles and site terms.

  • ProfileCache.keyvalue.profiletype to refresh the single profile instance of type profiletype with primary key value keyvalue.

  • AllMarketingCaches to refresh all site caches configured in web.config that are of type "Discounts" or "Advertising".

Permissions

See Also

Reference

SiteCacheRefresh Class

SiteCacheRefresh Members

Microsoft.CommerceServer.Runtime Namespace