[TYPO3-dev] page cache is not influenced by tt_content.starttime/endtime

Martin Holtz typo3 at martinholtz.de
Sun Aug 24 16:15:08 CEST 2008


Hi,

if i use extension date2cal (which will perhaps get into core
http://bugs.typo3.org/view.php?id=2497), the starttime/endtime fields in
tt_content become timestamp fields (without that they are only date
fields).

If i understand everything right, the actual caching meachanism works like
that:

- page is generated
- expiredate is calculated (by clearAtMidNight or page caching config,
usually set to generating time + one day)
- if a page is requested, TYPO3 checks wether the cache is expired or the
page starttime/endtime should take effect.

So an content element has no influence on caching time.

If a page is cached at 2pm (with 24hours cache-expire) and there is a
content element with an starttime at 3pm on that day, that content element
will be visible first at 2pm the next day (when the page cache expires).

So i wrote an extension which checks now all content elements of an page
before it is written to page cache. If there is an element with
starttime/endtime within the 24hours, the cache expire timestamp is set to
that value.

I would like to get some feedback,
the extension is in forge:
http://forge.typo3.org/projects/show/extension-cacheexpire
and in ter:
http://typo3.org/extensions/repository/view/cacheexpire/0.0.2/

gruss,
martin




More information about the TYPO3-dev mailing list