TaxonomySession.UpdateCache method

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

Namespace:  Microsoft.SharePoint.Taxonomy
Assembly:  Microsoft.SharePoint.Taxonomy (in Microsoft.SharePoint.Taxonomy.dll)

Syntax

'Declaration
Public Sub UpdateCache
'Usage
Dim instance As TaxonomySession

instance.UpdateCache()
public void UpdateCache()

Remarks

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.

See also

Reference

TaxonomySession class

TaxonomySession members

Microsoft.SharePoint.Taxonomy namespace