[TYPO3-core] RFC #9284: Feature: set $GLOBALS['TSFE']->cacheExpires
Michael Stucki
michael at typo3.org
Mon Oct 20 22:47:52 CEST 2008
Hi Martin,
>> However, the logic should be private to extensions. It should be set by
>> a public method that is called for every object, calculates the lowest
>> timeout-value, and sets it accordingly.
>
> so i should add this function to class.tslib_fe.php too?
> (Whats about the naming?)
Yes, I thought of something like this.
> function setPageCacheExpiresTimestamp($timestamp) {
> if ($timestamp != 0 && $timestamp < $this->cacheExpires) {
> $this->cacheExpires = $timestamp;
> }
> }
>
> and if that would be the right way, how would it be documented?
Core API? Additionally, and probably more important: Kickstarter output
as well as tslib_pibase should call this method (again, with the default
of 1 day), too!
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list