mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 10:36:11 +01:00
Fix not available cache for events_category
Adjust cache name to match TYPO3 v10 convention without "cache_" prefix. Add default configuration to prevent issue if integrator does not configure cache.
This commit is contained in:
parent
1929a4a566
commit
5440ef4f72
2 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,7 @@ class CategoryService
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->timeTracker = GeneralUtility::makeInstance(TimeTracker::class);
|
$this->timeTracker = GeneralUtility::makeInstance(TimeTracker::class);
|
||||||
$this->cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('cache_Events_category');
|
$this->cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('events_category');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,6 +32,10 @@ call_user_func(
|
||||||
[\Wrm\Events\Controller\EventController::class => 'list']
|
[\Wrm\Events\Controller\EventController::class => 'list']
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'])) {
|
||||||
|
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
|
||||||
|
}
|
||||||
|
|
||||||
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
|
||||||
$iconRegistry->registerIcon(
|
$iconRegistry->registerIcon(
|
||||||
'events-plugin',
|
'events-plugin',
|
||||||
|
|
Loading…
Reference in a new issue