Project

General

Profile

Actions

Bug #70378

closed

switchableControllerActions overrides configuration of non-cacheable actions

Added by Viktor Livakivskyi over 8 years ago. Updated about 2 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 functionalityResolved2019-06-08

Actions
Actions #1

Updated by Christian Eßl about 4 years ago

  • Related to Epic #88528: Remove switchable controller action functionality added
Actions #2

Updated by Christian Kuhn about 2 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.

Actions

Also available in: Atom PDF