// Deactivate TYPO3 caches in TYPO3 CMS v7/v8
// e.g. for Development Context
// Automatic NullBackend for all caches if applicationContext is Development (it's a caching backend which forgets everything immediately)
if(\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()->isDevelopment()) {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'] as $cacheName => $cacheConfiguration) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheName]['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class;
}
}
Comments