Project

General

Profile

Bug #25086 ยป t3lib_page_cache.patch

Administrator Admin, 2011-02-18 16:27

View differences:

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