[TYPO3-dev] How does extbase determine if non-cachable action is called
Krystian Szymukowicz
k.szymukowicz at gmail.com
Thu Apr 4 21:36:12 CEST 2013
W dniu 2013-04-04 16:45, Dirk Wenzel pisze:
> Hi,
> my extension has frontend plugin with different actions.
> (switchableControllerActions defined in flexform). One of them shall be
> configurable to show a random list of records (Teaser->list).
>
> Currently this only works when I disable the page cache for the hole page.
>
> How can I tell extbase to use the non-cachable action?
>
> Plugin Configuration (ext_localconf.php):
>
> Tx_Extbase_Utility_Extension::configurePlugin(
> $_EXTKEY,
> 'Events',
> //cachable actions
> array(
> 'Event' => 'list, show, quickMenu',
> 'Teaser' => 'list, show',
> ),
> // non-cacheable actions
> array(
> 'Event' => 'list,quickMenu',
> 'Teaser' => 'list',
> )
> );
>
> Registration (ext_tables.php):
> Tx_Extbase_Utility_Extension::registerPlugin(
> $_EXTKEY,
> 'Events',
> 'Events'
> );
>
> Flexform:
>
> <switchableControllerActions>
> <TCEforms>
> <label>Mode</label>
> <onChange>reload</onChange>
> <config>
> <type>select</type>
> <items>
> <numIndex index="0">
> <numIndex index="0">Teaser</numIndex>
> <numIndex
> index="1">Teaser->list;Teaser->showEvent;Event->show</numIndex>
> </numIndex>
>
> <numIndex index="1">
> <numIndex index="0">Event</numIndex>
> <numIndex index="1">Event->list;Event->show</numIndex>
> </numIndex>
>
> <numIndex index="2">
> <numIndex index="0">Quick Menu</numIndex>
> <numIndex index="1">Event->quickMenu</numIndex>
> </numIndex>
> </items>
> </config>
> </TCEforms>
> </switchableControllerActions>
>
Look here:
http://forum.typo3.org/index.php/t/194727/
I solved that by adding "Make non cachable" to flexform.
--
grtz
Krystian Szymukowicz
More information about the TYPO3-dev
mailing list