Bug #18253 » bug_0007591.patch
class.t3lib_tstemplate.php (working copy) | ||
---|---|---|
'tstamp' => $GLOBALS['EXEC_TIME']
|
||
);
|
||
$mpvar_hash = t3lib_div::md5int($GLOBALS['TSFE']->MP);
|
||
$GLOBALS['TYPO3_DB']->exec_UPDATEquery('cache_pagesection', 'page_id=' . intval($GLOBALS['TSFE']->id) . ' AND mpvar_hash=' . $mpvar_hash, $dbFields);
|
||
if ($GLOBALS['TYPO3_DB']->sql_affected_rows() == 0) {
|
||
$dbFields['page_id'] = intval($GLOBALS['TSFE']->id);
|
||
$dbFields['mpvar_hash'] = $mpvar_hash;
|
||
$GLOBALS['TYPO3_DB']->exec_INSERTquery('cache_pagesection', $dbFields);
|
||
}
|
||
$dbFields = $GLOBALS['TYPO3_DB']->fullQuoteArray($dbFields, 'cache_pagesection', $noQuote=FALSE);
|
||
$query = 'INSERT INTO cache_pagesection SET page_id=' . intval($GLOBALS['TSFE']->id) . ', mpvar_hash=' . $mpvar_hash .
|
||
', content=' . $dbFields['content'] . ',tstamp = ' . $dbFields['tstamp'] .
|
||
' ON DUPLICATE KEY UPDATE content=' . $dbFields['content'] . ',tstamp = ' . $dbFields['tstamp'];
|
||
$res = $GLOBALS['TYPO3_DB']->sql_query($query);
|
||
}
|
||
// If everything OK.
|
||
if ($this->rootId && $this->rootLine && $this->setup) {
|