Feature #19283 » 2008.10.29.tslib_class_fe.php_patch.diff
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
function cHashParams($addQueryParams) {
|
||
return t3lib_div::cHashParams($addQueryParams);
|
||
}
|
||
|
||
/**
|
||
* Sets the cache expiration timestamp
|
||
*
|
||
* @param integer Expiration timestamp when the cache is outdated
|
||
* @return void
|
||
* @access public
|
||
*/
|
||
function setPageCacheExpiresTimestamp($timestamp) {
|
||
if ($timestamp > $GLOBALS['EXEC_TIME'] && $timestamp < $this->cacheExpires) {
|
||
$this->cacheExpires = $timestamp;
|
||
}
|
||
}
|
||
|
||
|
||
/**
|
||
* Initialize the TypoScript template parser
|
||
*
|
||
... | ... | |
function setPageCacheContent($content, $data, $expirationTstamp) {
|
||
$this->clearPageCacheContent();
|
||
// only if content is not "message_page_is_being_generated"
|
||
// which expires after 30 seconds
|
||
if (!$this->tempContent) {
|
||
// can be changed from an extension via $GLOBALS['TSFE']->cacheExpires
|
||
// $this->cacheExpires is default 0
|
||
if ($this->cacheExpires > $GLOBALS['EXEC_TIME'] && $tstamp > $this->cacheExpires) {
|
||
$expirationTstamp = $this->cacheExpires;
|
||
}
|
||
}
|
||
|
||
$cacheData = array(
|
||
'hash' => $this->newHash,
|
||
'page_id' => $this->id,
|