[BUGFIX] Use runtime cache in tslib_fe::get_cache_timeout
authorSteffen Gebert <steffen.gebert@typo3.org>
Sat, 4 Jun 2011 16:51:56 +0000 (18:51 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Fri, 24 Jun 2011 19:10:12 +0000 (21:10 +0200)
commitfea7f6ecab436b3eb76a57a3d1594adfe76cbd8b
tree0ddd64deeec922bb89194d121d2c434199c0501c
parenta44f8fa0c99aff2526c045a9b49371ff93d52292
[BUGFIX] Use runtime cache in tslib_fe::get_cache_timeout

Thanks to #20473, start and stop times of records are now taken into
account during a page's cache lifetime calculation.
To prevent repeated computations, the value is cached inside
tslib_fe::get_cache_timeout(), using a class variable
getCacheTimeoutCache.

The Runtime Cache (#27208) not only offers a cleaner way to do so, it
also provides a remedy against the currently existing problem that
get_cache_timeout() does its job exactly twice: Once during menu
generation (which seems to work with a cloned copy of TSFE) and once
before putting the page contents into the cache. As both class instances
share the runtime cache, the second calculation can be safed.

Change-Id: I0b241749639a678ba6c1addd8d57e2256cf52bc2
Resolves: #27227
Depends: #27208
Reviewed-on: http://review.typo3.org/2531
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
typo3/sysext/cms/tslib/class.tslib_fe.php