[TYPO3-dev] config.linkVars cHash cache problem

JoH asenau info at cybercraft.de
Thu Mar 14 17:03:16 CET 2013


Am 14.03.2013 12:46, schrieb Christian Ludwig:
>
>> I set up a small example to show what I mean
>> (it is attached as T3D__2013-03-14_12-08-z.t3d
>> hope this works)
>
> It did not, at least not with my mail client, so here is the TS for the
> test.
>
> Oh, and what I did not mention is, if you first open the page without
> any parameter test, the menu links will lack the parameter.
> So empty the cache and start e. g. with
> http://localhost/index.php?id=2&test=AAA
>
> ---
>
> # Disable cache here and it works as expected
> page.config.no_cache = 0
>
> config.linkVars = test
>
> # Default PAGE object:
> page = PAGE
> page {
>    10 = TEXT
>    10.value (
>    <h1>linkVars = test</h1>
>    <a href="?id=2&test=AAA">Start Test A</a> |
>    <a href="?id=2&test=BBB">Start Test B</a>

Well - creating the links this way will never give you the desired result.

You will have to create them using typolink with useCacheHash = 1, 
anything else will never give you a proper cHash for that particular 
page, which is why youl will always end up with the result that has been 
created first.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com



More information about the TYPO3-dev mailing list