Project

General

Profile

Feature #32996 ยป feature_clearPageCache.diff

Urs Weiss, 2012-01-05 15:28

View differences:

typo3_src.new/t3lib/class.t3lib_tcemain.php 2012-01-05 14:43:17.000000000 +0100
}
}
} else { // For other tables than "pages", delete cache for the records "parent page".
$list_cache[] = $pageUid = intval($this->getPID($table, $uid));
$pid_tmp = intval($this->getPID($table, $uid));
$list_cache[] = $pageUid = $pid_tmp;
// Add parrent page
if ($TSConfig['clearCache_pageGrandParent']) {
$res_tmp = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'pid',
'pages',
'uid=' . intval($pid_tmp)
);
if ($row_tmp = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_tmp)) {
$list_cache[] = $row_tmp['pid'];
}
}
}
// Call pre-processing function for clearing of cache for page ids:
    (1-1/1)