File tree 3 files changed +7
-6
lines changed
Resources/Private/BackendFusion/Integration
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ Flowpack:
122
122
123
123
# can be used on the consuming site to ensure non-breaking deployments for changes in the config
124
124
configEpoch :
125
- current : v1
125
+ current : ' 1 '
126
126
previous : ~
127
127
128
128
Original file line number Diff line number Diff line change @@ -388,15 +388,16 @@ Example:
388
388
Flowpack:
389
389
DecoupledContentStore:
390
390
configEpoch:
391
- current: v2
392
- previous: v1
391
+ current: '2'
392
+ previous: '1'
393
393
` ` `
394
394
395
395
- Now on the consuming site we can take action to handle both the old and new config and decide based on the value in
396
396
redis which case is executed.
397
397
398
398
` ` ` 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/' : '');
400
401
` ` `
401
402
402
403
# # Development
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ Flowpack.DecoupledContentStore.BackendController.index = Neos.Fusion:Component {
5
5
// - contentStore: contains string content store identifier
6
6
// - redisContentStores: array of all configured content store identifiers
7
7
// - 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 "
10
10
// - showToggleConfigEpochButton: boolean
11
11
12
12
renderer = Neos.Fusion:Component {
You can’t perform that action at this time.
0 commit comments