Export (0) Print
Expand All

CatalogContext.CachingEnabled Property (BCL)

Commerce Server 2002

Use the CachingEnabled property to determine whether caching is enabled.

Definition

[Visual Basic .NET]
Overridable Public Property CachingEnabled As System.Boolean
[C#]
public virtual System.Boolean CachingEnabled {get; set;} 

Property Value

A Boolean value indicating whether caching is enabled. If True, caching is enabled, otherwise, caching is not enabled.

The default for the CachingEnabled property is False.

Remarks

You can set this property to True only when the CatalogContext is hosted in a ASP.NET environment, since it internally uses the underlying ASP.NET cache objects.

You can only use this property to disable and enable caching of the catalog-level data. Do not use it to disable caching of the catalog schema information, connection strings, catalog sets info etc.

Use the CatalogContext.Refresh method to refresh all the information that is cached by the Catalog BCL's.

The following catalog items get cached:

  • Category.AncestorCategoryNames
    • .ParentCategoryNames
    • .ChildCategoryNames
    • .CanonicalCategoryPath
    • .PrimaryParentCategoryName
    • .ChildCategoriesCount
    • .ChildProductsCount
  • Product.AncestorCategoryNames
    • .ParentCategoryNames
    • .CanonicalCategoryPath
  • ProductCatalog.Name
    • .Languages
    • .IdentifyingProductProperty
    • .IdentifyingVariantProperty
    • .PropertyNames
    • .SpecificationSearchableCategories

Requirements

Namespace: Microsoft.CommerceServer.Runtime.Catalog

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.dll

Copyright © 2005 Microsoft Corporation.
All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft