[TYPO3-core] RFC: Real Time Caching

Ingmar Schlecht ingmar at typo3.org
Tue Mar 27 16:28:32 CEST 2007


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.
> 
> It seems to work pretty well, but since there is an extra page-generation, I 
> made it configurable (but didn't add it to the install-tool).
> 
> 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.
> 
> Note: The patch is against 4.0.4, but I will make a patch against 4.1 as soon 
> as I have the time (in 2009, I guess :D)
> 
> ciao
> -julle


More information about the TYPO3-team-core mailing list