[TYPO3-dev] Re-openning #6601

Popy popy.dev at gmail.com
Tue Nov 6 18:05:09 CET 2007


The patch resolve only a part of the problem. When the page is found and the
overlay is done, all works.
But if the page is not accessible or if on of the overlays returns a "false"
value, the result is not cached, so queries will be done again and again.

If we need a real cache, a result has to be cached even if it is an error
(from my point of view), like this little code example :

if (!isset($cache[$cacheKey])) {
>    $cache[$cacheKey] = getFromDb();
>    [...]
> }
>
> return $cache[$cacheKey];


(I'm really sorry that I can't provide a patch / diff file from where I am)

-- 
Popy

Vulnerant omnes, ultima necat.

http://popy.sytes.net




More information about the TYPO3-dev mailing list