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

Dmitry Dulepov dmitry.dulepov at gmail.com
Tue Jun 9 13:26:02 CEST 2009


Hi!

Rupert Germann wrote:
> I'm not shure what you mean with "sets caching value" - cache content or
> cache lifetime? 

Cache life time.

> if there's something special about the line "$now = 60*(time()/60 - 1);"
> that I didn't get until now, please enlighten me - or commit the patch with
> this line - I don't really care.
> But then you should remove "...(do not polute MySQL cache!)" from the
> comment, because with  60*(time()/60 - 1) the time value in the query will
> change every second == poluting the query cache with lots of entries.

It rounds up the cache expiration time to the next minute. This way it creates less entries in the MySQL query cache.

> but however: there should be no direct calls to time() in core classes.
> use EXEC_TIME or ACCESS_TIME.

Tried, see in this thread.

-- 
Dmitry Dulepov
In the TYPO3 blog: http://dmitry-dulepov.com/article/macintosh-vs-hackintosh.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