If you specify a known type for the type attribute, Commerce Server provides a set of default values for the configuration. You can override these default values programmatically or you can set the values in the configuration itself.
Some of the cache types have a dependency on a specific Commerce Server resource. When the CommerceCacheModule creates the caches it also runs checks to make sure that all resource dependencies are satisfied. If these dependences are not satisfied, a CommerceResourceDependencyException is generated. If the BizData Service (Profiles) resource does not exist, setting the type to Advertising or Discounts generates a CommerceResourceDependencyException when the application is initialized. Similarly, if the Marketing resource does not exist, setting the type to MarketingDiscounts generates the same exception.
The following tables list the default values for each configuration setting and each type of cache.
Advertising
The Advertising cache has a dependency on the Marketing resource.
| Attribute | Value |
| loaderProgId | Commerce.CSFLoadAdvertisements |
| writerProgId | Commerce.CSFWriteEvents |
| refreshInterval | 300 |
| retryInterval | 60 |
Custom
| Attribute | Value |
| loaderProgId | None |
| writerProgId | None |
| refreshInterval | 300 |
| retryInterval | 60 |
Discounts
The Discounts cache has a dependency on the Marketing resource.
| Attribute | Value |
| loaderProgId | Commerce.CSFLoadDiscounts |
| writerProgId | Commerce.CSFWriteEvents |
| refreshInterval | 0 |
| retryInterval | 60 |
OrdersConfiguration
The Orders cache has a dependency on the Transaction Config resource.
| Attribute | Value |
| loaderProgId | Commerce.OrdersConfigurationCache |
| writerProgId | None |
| refreshInterval | 0 |
| retryInterval | 60 |
Payment
The Payment cache has a dependency on the Transaction Config resource.
| Attribute | Value |
| loaderProgId | Commerce.PaymentMethodCache |
| writerProgId | None |
| refreshInterval | 0 |
| retryInterval | 60 |
Shipping
The Shipping cache has a dependency on the Transaction Config resource.
| Attribute | Value |
| loaderProgId | Commerce.ShippingManagerCache |
| writerProgId | None |
| refreshInterval | 0 |
| retryInterval | 60 |
Tax
The Tax cache has a dependency on the Transaction Config resource.
| Attribute | Value |
| loaderProgId | Commerce.SampleRegionalTaxCache |
| writerProgId | None |
| refreshInterval | 0 |
| retryInterval | 60 |