diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f547c584f..961c40e7b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Use `defaultSortBy` for sorting category products by default @haelbichalex (#3873) - Fixed some potential mutations of Config object in `catalog` and `catalog-next` - @grimasod (#3843) - Set `null` as default value for custom option in product page - @gibkigonzo (#3885) +- Fixed `config.storeViews.commonCache` being ignored - @grimasod (#3895) ### Changed / Improved - Changed pre commit hook to use NODE_ENV production to check for debugger statements - @resubaka (#3686) diff --git a/core/lib/storage-manager.ts b/core/lib/storage-manager.ts index 1ba369ca7d..7619f81b1a 100644 --- a/core/lib/storage-manager.ts +++ b/core/lib/storage-manager.ts @@ -27,7 +27,7 @@ const StorageManager = { * @param isLocalized if set to `false` data will be shared between storeViews (default `true`) * @param storageQuota max size of storage, 0 if unlimited (default `0`) */ - init: function (collectionName: string, isLocalized = true, storageQuota = 0) { + init: function (collectionName: string, isLocalized = !config.storeViews.commonCache, storageQuota = 0) { this.storageMap[collectionName] = _prepareCacheStorage(collectionName, isLocalized, storageQuota) return this.storageMap[collectionName] },