Take the community feedback survey now.

K Khan
Feb 14, 2025
  737
(1 votes)

Comerce Connect calatog caching settings

A critical aspect of Commerce Connect is the caching mechanism for the product catalog, which enhances performance by reducing database load and improving data retrieval times. By effectively configuring and managing the catalog caching mechanisms in Optimizely Commerce Connect, applications can achieve improved performance, reduce server load, and ensure that users receive up-to-date catalog.

Catalog Caching Configurations

These settings help manage how long different types of catalog data are stored in the cache before expiration, thereby optimizing data retrieval and system performance.

Commerce Connect V13

Caching for each subsystem, including catalogs and orders, is configured within its respective configuration files. For example, caching for catalogs can be found in ecf.catalog.config located in the site's configs folder.

<Cache enabled="true" 
       collectionTimeout="0:5:0" 
       entryTimeout="0:5:0"
       nodeTimeout="0:5:0" 
       schemaTimeout="1:0:0"/>

Commerce Connect V14

 Cache settings for the Catalogs subsystem, using AppSettings.json

"EPiServer": {
       "Commerce": {
          "CatalogOptions": {
            "Cache": {
              "UseCache": true,
              "ContentVersionCacheExpiration": "00:05:00",
              "CollectionCacheExpiration": "00:05:00",
              "EntryCacheExpiration": "00:05:00",
              "NodeCacheExpiration": "00:05:00"
            }
          }
       }
    }

Cache settings for the Catalogs subsystem can be used using Startup also.

public void ConfigureServices(IServiceCollection services)
    {
        services.Configure<CatalogOptions>(o =>
        {
            o.Cache.UseCache = true;
            o.Cache.ContentVersionCacheExpiration = TimeSpan.FromMinutes(05);
            o.Cache.CollectionCacheExpiration = TimeSpan.FromMinutes(05);
            o.Cache.EntryCacheExpiration = TimeSpan.FromMinutes(05);
            o.Cache.NodeCacheExpiration = TimeSpan.FromMinutes(05);
        });
    }
  • UseCache: Enables or disables caching.
  • ContentVersionCacheExpiration: Sets the cache duration for content versions.
  • CollectionCacheExpiration: Defines the cache duration for an array of entries. The cached data primarily consists of CatalogEntryDto objects. Since the Entry object is derived from the Data Transfer Object (DTO), the DTO itself is cached. However, it is also possible to cache the Entry objects directly instead of the DTO in some cases.
  • EntryCacheExpiration: Specifies the cache duration for individual catalog entries. The cached data primarily consists of CatalogEntryDto objects.
  • NodeCacheExpiration: Determines the cache duration for catalog nodes.

Cache Invalidation

Cache invalidation ensures that outdated or modified data does not persist in the cache, maintaining data consistency. In the catalog subsystem, the cache is invalidated under the following circumstances:

Expiration: Cached data is automatically invalidated when it reaches the specified timeout duration.
Data Updates: If a catalog object is updated, the corresponding cache entries are invalidated to reflect the changes.

 

References: https://docs.developers.optimizely.com/customized-commerce/docs/caching

Feb 14, 2025

Comments

Praful Jangid
Praful Jangid Feb 17, 2025 07:49 AM

Thanks for sharing.
Caching strategy is key role player for the performance and most needed part in any application. 

Please login to comment.
Latest blogs
Quiet Performance Wins: Scheduled Job for SQL Index Maintenance in Optimizely

As Optimizely CMS projects grow, it’s not uncommon to introduce custom tables—whether for integrations, caching, or specialized business logic. But...

Stanisław Szołkowski | Oct 8, 2025 |

Image Generation with Gemini 2.5 Flash

Gemini 2.5 Flash Image, nicknamed Nano Banana, is Google DeepMind’s newest image generation & editing model. It blends text‑to‑image, multi‑image...

Luc Gosso (MVP) | Oct 8, 2025 |

Automated Page Audit for Large Content Sites in Optimizely

Large content sites often face significant challenges in maintaining visibility and control over thousands of pages. Content managers struggle to...

Sanjay Kumar | Oct 6, 2025

Optimizely CMS Roadmap – AI, automation and the future of digital experiences

A summary of the roadmap for Optimizely CMS from the Opticon conference on September 30, 2025.

Tomas Hensrud Gulla | Oct 6, 2025 |