File tree Expand file tree Collapse file tree
Resources/Private/BackendFusion/Integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ Flowpack:
122122
123123 # can be used on the consuming site to ensure non-breaking deployments for changes in the config
124124 configEpoch :
125- current : v1
125+ current : ' 1 '
126126 previous : ~
127127
128128
Original file line number Diff line number Diff line change @@ -388,15 +388,16 @@ Example:
388388 Flowpack:
389389 DecoupledContentStore:
390390 configEpoch:
391- current: v2
392- previous: v1
391+ current: '2'
392+ previous: '1'
393393 ` ` `
394394
395395- Now on the consuming site we can take action to handle both the old and new config and decide based on the value in
396396 redis which case is executed.
397397
398398 ` ` ` php
399- 'contentStoreUrl' => 'https://www.vendor.de/' . ($configEpoch === 'v2' ? 'de-de/' : '')
399+ $configEpoch = (int) $redisClient->get('contentStore:configEpoch');
400+ $contentStoreUrl = 'https://www.vendor.de/' . ($configEpoch > 1 ? 'de-de/' : '');
400401 ` ` `
401402
402403# # Development
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ Flowpack.DecoupledContentStore.BackendController.index = Neos.Fusion:Component {
55 // - contentStore: contains string content store identifier
66 // - redisContentStores: array of all configured content store identifiers
77 // - storeSize: string of content store size
8- // - toggleFromConfigEpoch: string, e.g. "v2 "
9- // - toggleToConfigEpoch: string, e.g. "v1 "
8+ // - toggleFromConfigEpoch: string, e.g. "2 "
9+ // - toggleToConfigEpoch: string, e.g. "1 "
1010 // - showToggleConfigEpochButton: boolean
1111
1212 renderer = Neos.Fusion:Component {
You can’t perform that action at this time.
0 commit comments