[TYPO3-core] RFC: Real Time Caching

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Tue Mar 27 22:17:07 CEST 2007


Ingmar Schlecht schrieb:
> Hi Julle,
> 
> it would be great if you could get hold of some core devs (possibly
> including me) on T3DD to explain the patch and get it reviewed and
> committed.
> 
> cheers
> Ingmar
> 
> Christian Jul Jensen schrieb:
>> Problem:
>> TYPO3s caching mechanism doesn't take start and stop time into account. It is 
>> possible to configure the cache to clear at midnight, but this only solves 
>> the problem if date and not datetime is used for start and stop times.
>>
>> Ie. if you want to make a press release aviable at exactly 6.30, it is 
>> currently not possible, unless you manually clear the cache.
>>
>> Solution:
>> Since start and stop of elements are implemented ond DB-level, there is no way 
>> to know if a content element should appear on the current page within the 
>> timespan untill the expiration of the cache. So what I've done is to 
>> pregenerate all the content with a fake time-stamp of the configured cache 
>> expiration, and look if any of the content elements have a start of stop time 
>> that is within the timespan.

Is it not enough to get the start/stop time of the page and all of it's 
content elements? I'm aware that this may yield differences to a full 
page rendering when TS limits the records somehow, but as other 
restrictions (eg FE user groups) may change the output, I think that 
this is not much of a problem.

>> Obviously the patch cannot take into account content coming from plugins etc. 
>> unless the tables are configured in TCA and rendered through cObj which often 
>> doesnt make sense because there is more logic involved, but it is possible to 
>> call the method of TSFE directly from an extension and thereby making it 
>> supported by extensions.

And you have alse the problem that the records shown may be stored in 
another page.

But this could be solved by providing a TCA config for the table and an 
extra configuration for that page (page TS?!?) so that TYPO3 knows it 
has to look into some other pages for determing the expiry time.

Masi


More information about the TYPO3-team-core mailing list