[TYPO3-core] RFC #11145 (resubmitted!): Starttime/endtime is not taken into account when caching

Dmitry Dulepov dmitry at typo3.org
Wed Jul 14 12:05:49 CEST 2010


Hi!

This is a resubmitted SVN patch request. The reason for resubmission is
that the patch is totally new and much better.

Type: bug

BT reference: http://bugs.typo3.org/view.php?id=11145

Branches: possibly 4.3 / 4.4 / trunk

Problem: when caching pages, start and end time of the content is not taken
into account. Also start and end time of pages is not taken into account
when generating menus. An example: if you have a page that starts on 12:30,
many pages will not show it in a proper time in menu. Same is for the end
time: pages can show in menu but show 404 on click because the end time was
reached.

Solution: the attached patch takes tt_content start and end time into
account. It also makes sure that menu is displayed properly. All this works
by adjusting the cache timeout to the shortest value possible.

Notes:
- there is room for improvement (take tart and end time of other records
into account through hook) but that will be the next step. For now we just
need a base functionality, something to start with!
- I took somewhat unusual and unclean approach with menu handling by
modifying a variable inside TSFE and restoring it. There is no other way to
do it. It is a pity that the code of menu is organized this way. But the
fix works.
- this patch is donated by Snowflake Productions Gmbh. We use it internally
with 4.3.

-- 
Dmitry Dulepov
TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 11145_v3.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100714/aa88fe23/attachment.asc>


More information about the TYPO3-team-core mailing list