Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit ccc3687

Browse files
author
Marvin Kuhn
authored
Merge pull request #7 from mficzel/patch-2
Bugfix: Optimize cache annotations
2 parents 602a60e + fbf31b2 commit ccc3687

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Resources/Private/Fusion/NodeTypes/ABTestingContainer.fusion

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,20 @@ prototype(Wysiwyg.ABTesting:ABTestingContainer) < prototype(Neos.Neos:ContentCom
1818
@cache {
1919
mode = 'dynamic'
2020
entryIdentifier {
21-
0 = ${node}
22-
1 = ${feature}
23-
2 = ${testCase}
21+
node = ${node}
2422
}
2523

26-
entryDiscriminator = Neos.Fusion:Collection {
27-
0 = ${feature}
28-
1 = ${testCase}
29-
}
24+
entryDiscriminator = ${Wysiwyg.ABTesting.Decisions.getDecisionForFeature(feature, request.arguments.forceABVersion)}
3025

3126
entryTags {
3227
1 = ${Neos.Caching.nodeTag(node)}
3328
}
3429

3530
context {
3631
1 = 'node'
37-
2 = 'testCase'
38-
3 = 'feature'
32+
2 = 'documentNode'
33+
3 = 'site'
34+
4 = 'feature'
3935
}
4036
}
4137
}

0 commit comments

Comments
 (0)