catalog Element

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

The catalog element in the Web.config file contains elements to specify catalog sets, join table information, and caching.

Aa545253.alert_note(en-US,CS.70).gifNote:

The catalog element is a container for other elements. You cannot create a configuration with the catalog element alone.

Catalog sets information can be specified using the catalogSets element. The catalogSets element is optional.

The following table lists and describes the attributes of the catalogSets element.

Attribute

Data Type

Description

defaultAuthenticated

String

Optional. Specifies the default catalogSet for authenticated users.

If not specified, the catalogSet 'Registered User Default CatalogSet' is used.

defaultAnonymous

String

Optional. Specifies the default catalogSet for anonymous users.

If not specified, the catalogSet 'Anonymous User Default CatalogSet' is used.

Caching in the catalog system can be implemented using the cache element. The cache element is optional, and if not present then caching is disabled.

The number of kilobytes available to the cache can be controlled by the EffectivePrivateBytesLimit attribute available in the cache element defined by ASP.NET.

The following table lists and describes the attributes of the cache element.

Attribute

Data Type

Description

enable

String

Optional. Boolean. Default is False. Setting enable to True caches various data sets in the catalog system. The time interval for each of these data set types is controlled by the corresponding timeout attribute. If caching is enabled but the timeOut attribute is missing, the dataset will be cached for 5 minutes on the server.

schemaTimeout

String

Specifies the time (in minutes) for which the data sets pertaining to the catalog schema are cached.

itemInformationCacheTimeout

String

Specifies the time (in minutes) for which the Item.Information data sets are cached.

itemHierarchyCacheTimeout

String

Specifies the time (in minutes) for which the parent and child hierarchy information data sets are cached.

itemRelationshipsCacheTimeout

String

Specifies the time (in minutes) for which the product and category relationships data sets are cached.

itemAssociationsCacheTimeout

String

Specifies the time (in minutes) for which the inventory product catalog associations data sets are cached.

catalogCollectionCacheTimeout

String

Specifies the time (in minutes) for which the catalogs, catalog sets, and inventory catalogs collection datasets are cached.

<catalog>
    <catalogSets 
       defaultAuthenticated="defaultAuthenticated catalogset"
       defaultAnonymous="defaultAnonymous catalogset">
    </catalogSets>
    <cache
       enable="true" 
       schemaTimeout="10" 
       itemInformationCacheTimeout ="10" 
       itemHierarchyCacheTimeout ="10" 
       itemRelationshipsCacheTimeout = "10" 
       itemAssociationsCacheTimeout="10" 
       catalogCollectionCacheTimeout="10"
    />
</catalog>
Show: