[TYPO3-english] How to pass a parameter through a whole TYPO3 site in 4.5 respecting caching?

bernd wilke t3ng at bernd-wilke.net
Thu Nov 28 14:22:08 CET 2013

Am 27.11.13 10:52, schrieb Jan Kornblum:
> Hi newsgroup,
> i have to pass a parameter through a whole TYPO3 site. The parameter
> acts like a "partner-id". How can this be achived best in TYPO3 4.5
> without leading to a wrong caching behaviour?

every content which does not depend on this parameter could be cached 
and propably is cached.
you may not have any special content dependend from the param, BUT you 
want all links to contain this param, so every content containing a link 
is param-dependend. This will propably include every page content :(

either you build up an own cache for every possible param-value (easiest 
way: insert TS-Conditions for every value, but not possible with a wide 
range of random values)

or you must inject the param after the page is build:
this could be done with JS where you modify every link on the page.
be carefull with non obvious links like eventhandlers!
eiher the JS extracts the param from the current URL or it has to be 
uncached generated JS to be included.
Drawback: does not work if Javascript is disabled


More information about the TYPO3-english mailing list