Project

General

Profile

Bug #27675 ยป 27675.diff

Xavier Perseguers, 2011-06-24 09:54

View differences:

typo3/sysext/scheduler/tasks/class.tx_scheduler_cachingframeworkgarbagecollection.php
$usedCacheBackend = $cacheConfiguration['backend'];
if (in_array($usedCacheBackend, $this->selectedBackends)) {
if (!isset($cacheConfiguration['frontend'])) {
$cacheConfiguration['frontend'] = 't3lib_cache_frontend_VariableFrontend';
}
$this->callGarbageCollectionOfCache($cacheName, $cacheConfiguration);
}
}
......
// Get existing cache instance or create a new one
try {
$cache = $GLOBALS['typo3CacheManager']->getCache($cacheName);
} catch (t3lib_cache_exception_NoSuchCache $exception) {
} catch (Exception $exception) {
$GLOBALS['typo3CacheFactory']->create(
$cacheName,
$cacheConfiguration['frontend'],
    (1-1/1)