[TYPO3-dev] Exclude get vars from cHash check.
Nikolas Hagelstein
hagelstein at shr.cc
Thu Nov 29 15:10:20 CET 2007
Dmitry Dulepov wrote:
> No. cHash is supposed to have all vars in it by design. Otherwise it
> is useless.
Depends on the situation:
Imagine you got 2 plugins on one page:
my_ext_pi1 : USER -> Serving a Database record depending on
tx_myext_pi1[uid]
my_ext_pi2 : USER_INT -> output depending on &tx_myext_pi2[whaterver]
Surfin that page with (assuming it has been surfed before so it is cached
already):
?id=1&tx_myext_pi1[uid]=3&cHash=xxxx (xxx = correct chash for uid=3).
would pull the page from cache and render the pi_2 (since it is user_int)
so there would be one entry for every uid value for that page.
That far that good but lets assume i would need to controll pi2 by another
heavy variating parameter if i would create a chash over :
&tx_myext_pi1[uid]=3&tx_myext_pi2[whaterver]=asdf&cHash=xxxx
I'd end up in tons of cache rows all containing the same content (everything
that changes is pi2 and it is user_int anyway).
So that is where that excludedCHash parameter comes into play: setting it to
tx_myext_pi2[whaterver] would solve that issue immediatly.
Cheers,
Nikolas
More information about the TYPO3-dev
mailing list