TaxonomySession.UpdateCache TaxonomySession.UpdateCache TaxonomySession.UpdateCache Method


Forces the taxonomy cache to communicate with the Managed Metadata Service to check for changes to any taxonomy objects.

 void UpdateCache();
public void UpdateCache ();
Public Sub UpdateCache ()


A background thread already performs these checks at periodic intervals, so calling UpdateCache() is normally unnecessary and may slow server performance. However, it is sometimes useful immediately before a change (to reduce the likelihood of save conflict errors) or immediately after a change (if that change may have been performed via a different web front end).

The operation can also be performed via the updateCache parameter for the server object model TaxonomySession constructors: TaxonomySession(SPList, Boolean), TaxonomySession(SPSite, Boolean), TaxonomySession(SPWeb, Boolean).

The UpdateCache method updates the cache for each TermStore object.

Applies to