Project

General

Profile

Bug #20845 » bug_11663_part1_4-2.diff

Administrator Admin, 2009-08-07 16:54

View differences:

t3lib/class.t3lib_stdgraphic.php (Arbeitskopie)
$md5Hash=md5($output);
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('md5hash', 'cache_typo3temp_log', 'md5hash='.$GLOBALS['TYPO3_DB']->fullQuoteStr($md5Hash, 'cache_typo3temp_log').' AND tstamp>'.(time()-30));
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { // If there was a record, the image is being generated by another proces (we assume)
// Note: This will not work if $TYPO3_CONF_VARS['FE']['disableNoCacheParameter'] is enabled.
// TODO: Drop this feature? Anyone using it?
if (is_object($GLOBALS['TSFE'])) $GLOBALS['TSFE']->set_no_cache(); // ...so we set no_cache, because we dont want this page (which will NOT display an image...!) to be cached! (Only a page with the correct image on...)
if (is_object($GLOBALS['TT'])) $GLOBALS['TT']->setTSlogMessage('typo3temp_log: Assume this file is being rendered now: '.$output);
return 2; // Return 'success - 2'
typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie)
if ($conf['stdWrap.']) {
$content=$this->stdWrap($content, $conf['stdWrap.']);
}
// returning
// Note that this does not work if $TYPO3_CONF_VARS['FE']['disableNoCacheParameter'] is set. In such a case, just wrap this element inside a COA_INT object.
$GLOBALS['TSFE']->set_no_cache();
return $content;
}
(5-5/7)