Skip to content

Commit 514f918

Browse files
committed
FEATURE: add config epoch to settings and redis
1 parent 66aa17e commit 514f918

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Classes/Transfer/ContentReleaseSynchronizer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ class ContentReleaseSynchronizer
2828
*/
2929
protected $redisKeyPostfixesForEachReleaseConfiguration;
3030

31+
/**
32+
* @Flow\InjectConfiguration("configEpoch")
33+
* @var string
34+
*/
35+
protected $configEpochSetting;
36+
3137
/**
3238
* @Flow\Inject
3339
* @var RedisKeyService
@@ -64,6 +70,7 @@ public function syncToTarget(RedisInstanceIdentifier $targetRedisIdentifier, Con
6470
}
6571

6672
$targetRedis->zAdd('contentStore:registeredReleases', 0, $contentReleaseIdentifier->getIdentifier());
73+
$targetRedis->set('contentStore:configEpoch', $this->configEpochSetting);
6774
}
6875

6976
/**

Configuration/Settings.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ Flowpack:
120120
transferMode: 'dump'
121121
isRequired: true
122122

123+
# can be used on the consuming site to ensure non-breaking deployments for changes in the config
124+
configEpoch: v1
123125

124126

125127
resourceSync:

0 commit comments

Comments
 (0)