次の方法で共有


catalog Element

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

Note

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

catalogSets Element

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.

cache Element

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.

Example

<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>

See Also

Other Resources

Web.Config Configuration Settings