[TYPO3-core] RFC: Real Time Caching
Christian Jul Jensen
julle at typo3.org
Wed Mar 14 12:55:40 CET 2007
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
--
Christian Jul Jensen
Gimme five!
http://TYPO3.org/gimmefive/
TYPO3 Core developer
http://TYPO3.org
TYPO3 Association active member.
http://association.TYPO3.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realTimeCaching-4.0.4.patch
Type: text/x-diff
Size: 5809 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070314/5db9603f/attachment.bin
More information about the TYPO3-team-core
mailing list