[TYPO3-mvc] caching problem with f:form

Franz Koch typo3.RemoveForMessage at elements-net.de
Mon Jul 4 14:03:29 CEST 2011


Hi,

> in fluid I defined this form:
>
> <f:form>
>      <f:form.select name="street" options="{areas}" optionValueField="street"
> optionLabelField="street" value="{street}"/>
>      <f:form.submit value="show" />
> </f:form>
>
> This results in html, where the action is:
> abfallentsorgung/?tx_engmhwastecal_wastecal%5Bcontroller%5D=Area&amp;cHash=a
> ffebeb09b2d94ce3eb72d1bf0fad569
>
> Because of the cHash value the target page is cached on the first call and
> on further calls the value of the form.select is not considered.

That's not entirely related to the appended cHash. Looks like your list 
action in general is cacheable. If that wouldn't be the case, the cHash 
wouldn't have any affect on it. So if the list action shouldn't be 
cached, please also add it to the non-cacheable actions in your 
ext_localconf plugin configuration.

To get rid of the cHash in your form uri simply add 'noCacheHash="true"' 
to your f:form tag. But as I said, only removing the cHash might/should 
not solve your issue in general as you still could run into caching 
issues as long as the list action is configured as cacheable.
-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list