[TYPO3-core] RFC: Feature Request 5424: Menu cache expire time should be configurable

Martin Kutschker martin.kutschker-n0spam at no5pam-blackbox.net
Sun Apr 22 20:38:56 CEST 2007


Oliver Hader schrieb:
> This is a SVN patch request.
> 
> Problem:
> On line 839 in class.tslib_menu.php the caching timeout is hardcoded:
> $serData = $this->sys_page->getHash($this->hash, 60*60*24);
> 
> Solution:
> Integrate a new TypoScript property to the HMENU object to make this
> configurable. If this property is not set, the value is taken from the
> cache_timeout of the current page. If this is also not available, the
> value is taken from global config.cache_period. And finally, if nothing
> was set, the value of 86400 seconds (= 1 day) is used.
> 
> Documentation changes:
> In doc_core_tsref, section HMENU, before property "entryLevel":
> The number of seconds a menu may remain in cache. If this value is not
> set, the first available value of the following will be used:
> 1) cache_timeout of the current page
> 2) config.cache_period defined globally
> 3) 86400 (= 1 day)

Ok, but... get_cache_timeout() has no return statement.

And please make it getCacheTimout() - or should it be getCachePeriod? - 
to follow the naming convention of tslib_fe and tslib_menu.

Masi


PS: Why is it page.cache_timeout but config.cache_period?


More information about the TYPO3-team-core mailing list