#86837TypoScript Condition: tree.* broken on cached pages
Description
Implement a basic TypoScript condition for swapping out page content for a certain page ID:
page.10 > page.10 = TEXT page.10.value = foo [3 in tree.rootLineIds] page.10 > page.10 = TEXT page.10.value = bar [END]
Clear all caches.
Call page with ID 3 results in “bar” as output. OK.
If I log the \TYPO3\CMS\Frontend\Configuration\TypoScript\ConditionMatching\ConditionMatcher constructor, the class member $tree->rootLineIds contains the rootline of the current page, just as expected (e.g.):
Array
(
[0] => 1
[1] => 3
)
Keep reloading the page, output stays “bar”, everything OK.
*Call a different page, e.g. ID 105. Results in “foo” as output. OK.*
$tree->rootLineIds from the ConditionMatcher class logs as follows:
Array
(
[0] => 1
[1] => 2
[2] => 105
)
Keep reloading the page, output stays “foo”. BUT: $tree->rootLineIds log now shows an empty array.
Call page with ID 3 again. Output is now “foo”, $tree->rootLineIds stays empty.
_Condition doesn’t match anymore!_
Probably something wrong with cacheing.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.