Defect HC-9158

WCSCatalogEntry does not properly include store information in its cache

Software

Customer case Applies to Corrected in
CS0201289 V9.0.1.13 9.1.11.0

Observed behavior

When a product is shared between 2 or more stores, category-level promotions do not work consistently between the stores.

Expected behavior

The promotion should work correctly for the store it was authored for.

Resolution

When products are shared between stores, they typically have different parent categories.

The parent category of a product is cached for the first parent store encountered. When the same product from a second store requests its parent category, it will find the first store's category in the cache, not the second store's. This could cause category-level promotions in the second store to not work due to the category id mismatch.

The code was fixed to include the store's id in the cache key.