Project

General

Profile

Actions

Bug #70378

closed

switchableControllerActions overrides configuration of non-cacheable actions

Added by Viktor Livakivskyi about 9 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2015-10-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Epic #88528: Remove switchable controller action functionalityClosed2019-06-08

Actions
Actions

Also available in: Atom PDF