Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.2 KB

2023-09-14-collect-cache-invalidations-in-redis.md

File metadata and controls

45 lines (34 loc) · 1.2 KB
title issue
Collect cache invalidations in Redis
NEXT-30262

Core

  • Added \Shopware\Core\Framework\Adapter\Cache\InvalidatorStorage\RedisInvalidatorStorage to collect invalidations in Redis in a atomic operation.
  • Deprecated \Shopware\Core\Framework\Adapter\Cache\InvalidatorStorage\CacheInvalidatorStorage and will be removed in 6.6

Upgrade Information

Deprecation of CacheInvalidatorStorage

We deprecated the default delayed cache invalidation storage, as it is not ideal for multi-server usage. Make sure you switch until 6.6 to the new RedisInvalidatorStorage.

shopware:
    cache:
        invalidation:
            delay_options:
                storage: cache
                dsn: 'redis://localhost'

Next Major Version Changes

Removal of CacheInvalidatorStorage

The delayed cache invalidation storage was until 6.6 the cache implementation. As this is not ideal for multi-server usage, we deprecated it in 6.5 and removed it now. Delaying of cache invalidations now requires a Redis instance to be configured.

shopware:
    cache:
        invalidation:
            delay_options:
                storage: cache
                dsn: 'redis://localhost'