[TYPO3-core] FYI72: #11145: Starttime/endtime is not taken into account when caching

Dmitry Dulepov dmitry.dulepov at gmail.com
Tue May 19 10:17:57 CEST 2009


Hi!

This is SVN patch request.

Type: bug

Branches: trunk, 4.2

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

Problem: starttime/endtime is not taken into account when caching pages. The issue exists for both content and records (like tt_news). Cache time should be adjusted automatically for such items.

Solution: add a check for the tt_content elements on the current page and a configurable check for other items (such as tt_news). Configuration looks like this:
===============
config.cache {
	123 = tt_news:456
}
===============
Here 456 is the tt_news sysfolder and 123 is the page where cache is affected by the tt_news items.

Notes:
- the patch was made for a customer, it was tested in both 4.2 and 4.3 and it works great.
- this issue is related to 9284 but that issue went the other way (hooks for extension). I have a solution that every webmaster can easily and effectively use without altering any extensions. This is very important for tt_news handling, which is not released very often.

-- 
Dmitry Dulepov
In the TYPO3 blog: http://dmitry-dulepov.com/article/slides-from-my-talks-at-t3dd09.html
LinkedIn: http://www.linkedin.com/in/dmitrydulepov
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs


More information about the TYPO3-team-core mailing list