[TYPO3-dev] Caching extension output without the cHash parameter
Elmar Hinz
elmar07 at googlemail.com
Mon Aug 27 11:24:48 CEST 2007
John de Stigter wrote:
> Hi there,
>
> I am working on an extension with GET vars like tt_news that I want to
> be cached by TYPO3. I've read the article about the cHash parameter and
> this all works great, but I don't like the cHash value in my url's.
>
> To make this possible I have added some code to the function
> "makeCacheHash()" in the class "tslib_fe". What I do is I check if any
> $_GET variables are set that belong to my extension. If so, than I unset
> the $GET variable that is passed over and fill it up again with only the
> page id and the variables that belong to my extension. After this I
> calculate the cHash of my rebuilt $GET and set $this->cHash to that
> value.
>
Hi,
assume you cache single views. You have 5000 of them. The uids are between 1
and 5000.
Now the bad boy sends the same URL 100.000.000 times, starting with the uid
5001. Then incrementing. What happens?
Regards
Elmar
More information about the TYPO3-dev
mailing list