Bug #70378
closedswitchableControllerActions overrides configuration of non-cacheable actions
0%
Description
I have a number of actions in my controller. Part of them are executed in one plugin (on first page), and another part is executed in another plugin (on second page).
For making this possible I'm using FlexForm with switchableControllerActions:
<switchableControllerActions> <TCEforms> <label>Label</label> <config> <type>select</type> <items type="array"> <numIndex index="0" type="array"> <numIndex index="0">Plugin 1</numIndex> <numIndex index="1">Controller->action1;Controller->action2</numIndex> </numIndex> <numIndex index="1" type="array"> <numIndex index="0">Plugin 2</numIndex> <numIndex index="1">Controller->action3;Controller->action4</numIndex> </numIndex> </items> <minitems>1</minitems> <maxitems>1</maxitems> <size>1</size> </config> </TCEforms> </switchableControllerActions>
All the actions are defined in ext_localconf.php as uncached.
If I make a link from "Plugin 1" to "action3", it will be correctly created, but will contain a cHash. If I include "action3" into "Plugin 1" via switchableControllerActions, same link will not contain cHash.
Same happens, when redirect() is called from within a Controller.
I expect, that 'switchableControllerActions' wouldn't affect cacheable and non-cacheable plugin definitions, so it looks like a bug.
Updated by Christian Eßl over 4 years ago
- Related to Epic #88528: Remove switchable controller action functionality added
Updated by Christian Kuhn almost 3 years ago
- Status changed from New to Closed
Hey. We removed the switchable controller action functionality with #88528 entirely, so this issue is not relevant for current core versions anymore. I hope it's ok to close here.