[TYPO3-core] Getting an overview

Wolfgang Klinger wolfgang at stufenlos.net
Wed Feb 14 08:31:28 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

*hiya!*

Michael Stucki wrote:
> In case of a cached plugin (eg. a shop, or a forum) which contains
> non-cached parts, extension developers usually call $TSFE->set_no_cache()
> to work prevent caching of this page.
> 
> This will cause $TSFE->no_cache to be true while the plugin still indicates
> that it uses cHashes ($this->pi_checkCHash = TRUE).
> 
> So actually the plugin is misconfigured, but luckily we can easily work
> around that and prevent other extensions from having the same problem: Just
> check if $TSFE->no_cache is set and do not check the cHash in this case.
> 
> Attached is a patch that should fix the problem.

+1, even though personally I would rather add the
!$GLOBALS['TSFE']->no_cache check to the tslib_pibase method
before calling reqCHash
or even set $this->pi_checkCHash to false anyway in case
$GLOBALS['TSFE']->no_cache is true(?)


bye
Wolfgang
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFF0rrQqdbDgXT355kRAiJBAJ9iUCND7bXybhTYZzGv/5WBqByCdwCYtJh2
lnJYtbakhyR6osWPQrrbpA==
=JSaH
-----END PGP SIGNATURE-----


More information about the TYPO3-team-core mailing list