Project

General

Profile

Bug #21181 » 12109_v2.diff

Administrator Admin, 2009-10-14 21:44

View differences:

t3lib/class.t3lib_page.php (Arbeitskopie)
$hashContent = null;
if (TYPO3_UseCachingFramework) {
$contentHashCache = $GLOBALS['typo3CacheManager']->getCache('cache_hash');
$cacheEntry = $contentHashCache->get($hash);
if (is_object($GLOBALS['typo3CacheManager'])) {
$contentHashCache = $GLOBALS['typo3CacheManager']->getCache('cache_hash');
$cacheEntry = $contentHashCache->get($hash);
if ($cacheEntry) {
$hashContent = $cacheEntry;
if ($cacheEntry) {
$hashContent = $cacheEntry;
}
}
} else {
$expTime = intval($expTime);
......
*/
public static function storeHash($hash, $data, $ident, $lifetime = 0) {
if (TYPO3_UseCachingFramework) {
$GLOBALS['typo3CacheManager']->getCache('cache_hash')->set(
$hash,
$data,
array('ident_' . $ident),
$lifetime
);
if (is_object($GLOBALS['typo3CacheManager'])) {
$GLOBALS['typo3CacheManager']->getCache('cache_hash')->set(
$hash,
$data,
array('ident_' . $ident),
$lifetime
);
}
} else {
$insertFields = array(
'hash' => $hash,
(2-2/2)