forked from evoWeb/extender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
26 lines (23 loc) · 974 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
defined('TYPO3_MODE') || die();
call_user_func(function () {
// Register extender cache
// needs to stay above registerAutoloader to always have settings before using the cache
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extender'] = [
'frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class,
'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class,
'groups' => [
'all',
'system',
],
'options' => [
'defaultLifetime' => 0,
],
];
if (class_exists(\Evoweb\Extender\Utility\ClassLoader::class)) {
\Evoweb\Extender\Utility\ClassLoader::registerAutoloader();
}
// Configure clear cache post processing for extended domain model
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][] =
\Evoweb\Extender\Utility\ClassCacheManager::class . '->reBuild';
});