[TYPO3-core] RFC #10075: Bug: Rootline cache does not work in multilingual websites
Ernesto Baschny [cron IT]
ernst at cron-it.de
Wed Jan 7 15:13:58 CET 2009
Hi Francois,
the fix looks ok, but I am not sure how this bug affects anything. Do
you have a real live example?
If I understand it correctly this "cache" is just valid for a single
request. It would only become buggy if in one request we switch
$this->sys_language_uid back and forth.
Nevertheless I would +1 this fix because it seems to make sense and it
looks like Francois has hit some bug behaviour with it.
Cheers,
Ernesto
Francois Suter wrote: on 07.01.2009 14:38:
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=10075
>
> Branches:
> 4_2 and Trunk
>
> Problem:
> The rootline cache (in class t3lib_pageSelect) was made to work properly
> in TYPO3 since version 4.2.2. However this introduced a bug: the cache
> does not take the language into account. So if you calculate the
> rootline for a given page in a given language, this rootline will be
> reused for any other language. This is wrong since
> t3lib_pageSelect::getRootLine() is expected to return a properly
> overlaid rootline.
>
> Solution:
> Add the current language (as stored in $this->sys_language_uid) to the
> keys used to store the rootline in cache.
>
> Notes:
> I have added the language as the second dimension of the cache array,
> before the mount point info, as it seemed more logical. It could added
> after it, however. I don't think it changes much.
>
> Cheers
>
More information about the TYPO3-team-core
mailing list