Skip to content

Commit

Permalink
refactor: rename status cache to general cache in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd248 committed Feb 13, 2025
1 parent 4bfc9f3 commit 9a35fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
15 changes: 5 additions & 10 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,23 @@ services:
resource: '../Classes/*'
exclude: '../Classes/Domain/Model/*'

cache.ximatypo3contentplanner_statuscache:
cache.ximatypo3contentplanner_cache:
class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
factory: [ '@TYPO3\CMS\Core\Cache\CacheManager', 'getCache' ]
arguments: [ 'ximatypo3contentplanner_statuscache' ]

cache.ximatypo3contentplanner_recordcache:
class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
factory: [ '@TYPO3\CMS\Core\Cache\CacheManager', 'getCache' ]
arguments: [ 'ximatypo3contentplanner_recordcache' ]
arguments: [ 'ximatypo3contentplanner_cache' ]

Xima\XimaTypo3ContentPlanner\Domain\Repository\RecordRepository:
arguments:
$cache: '@cache.ximatypo3contentplanner_recordcache'
$cache: '@cache.ximatypo3contentplanner_cache'

Xima\XimaTypo3ContentPlanner\Domain\Repository\StatusRepository:
arguments:
$cache: '@cache.ximatypo3contentplanner_statuscache'
$cache: '@cache.ximatypo3contentplanner_cache'

Xima\XimaTypo3ContentPlanner\Hooks\DataHandlerHook:
public: true
arguments:
$cache: '@cache.ximatypo3contentplanner_statuscache'
$cache: '@cache.ximatypo3contentplanner_cache'
$statusChangeManager: '@Xima\XimaTypo3ContentPlanner\Manager\StatusChangeManager'

Xima\XimaTypo3ContentPlanner\EventListener\DrawBackendHeaderListener:
Expand Down
4 changes: 2 additions & 2 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
'className' => \Xima\XimaTypo3ContentPlanner\Controller\TreeController::class,
];

$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['ximatypo3contentplanner_statuscache'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['ximatypo3contentplanner_statuscache'] = \Xima\XimaTypo3ContentPlanner\Hooks\DataHandlerHook::class . '->clearCachePostProc';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['ximatypo3contentplanner_cache'] ??= [];
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['ximatypo3contentplanner_cache'] = \Xima\XimaTypo3ContentPlanner\Hooks\DataHandlerHook::class . '->clearCachePostProc';

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Xima\XimaTypo3ContentPlanner\Hooks\DataHandlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Xima\XimaTypo3ContentPlanner\Hooks\DataHandlerHook::class;
Expand Down

0 comments on commit 9a35fed

Please sign in to comment.