Bug #21181 » 12109_v2.diff
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,
|
- « Previous
- 1
- 2
- Next »