[TYPO3-core] RFC #[7937]: [Feature]: [stdWrap/Hook for baseUrl]

Nico de Haen typo3 at ndh-websolutions.de
Sat May 16 17:34:53 CEST 2009


I tested it and it's right, the hook is not executed after the first 
caching anymore. So I would recommend NOT to include the hook and to 
close the feature request, since the Typoscipt conditions provide a 
solution for the described use case.

Regards,
Nico

Ernesto Baschny [cron IT] schrieb:
> Franz Koch schrieb:
>> Hi,
>>
>>>>> in certain circumstances baseUrl should be changed (if different
>>>>> domains should be handled), but it should not be possible to change it
>>>>> to ANY domain (as it did in former times with baseUrl = 1)
>>>> Question:
>>>> Why do you not simply use [conditions] to set the baseURL to one of the
>>>> allowed values.
>>>
>>> It's a bit annoying to have to fiddle with constants.
>>
>> and how would you do this with stdWrap instead? Fiddling around with a 
>> CASE object or numerous if-conditions? By no means easier if you ask me.
> 
> Another reasoning for using [conditions] is because those will generate 
> different cached pages.
> 
> If you use "stdWrap" and regular cacheable output, the first hit will 
> populate the baseHref into the generated output, and every subsequent 
> hit will just not call the stdWrap anymore, thus you cannot 
> differenciate between domains. You would have to make that an USER_INT, 
> with all overhead that comes with that.
> 
> Using conditions this is no problem, because the caching system of TYPO3 
> already handles those (having different cached versions depending on the 
> matching conditions).
> 
> Cheers,
> Ernesto
> 
> 


More information about the TYPO3-team-core mailing list