Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 582 Bytes

2022-11-03-reset-translator-s-cache-after-switching-theme.md

File metadata and controls

8 lines (8 loc) · 582 Bytes
title issue
Reset translator's cache after switching theme
NEXT-23923

Storefront

  • Changed \Shopware\Storefront\Theme\CachedResolvedConfigLoaderInvalidator::assigned to invalidate translator cache after switching themes of a sales channel
  • Changed \Shopware\Core\Framework\Adapter\Translation\TranslatorCacheInvalidate::clearCache to use CacheInvalidator::invalidate instead of CacheItemPoolInterface::deleteItem
  • Changed \Shopware\Core\Framework\Adapter\Translation\Translator::loadSnippets to consider salesChannelId in cache key when caching translator