-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathext_localconf.php
More file actions
55 lines (43 loc) · 2 KB
/
ext_localconf.php
File metadata and controls
55 lines (43 loc) · 2 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
defined('TYPO3') or die('Access denied.');
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use Codemacher\TileProxy\Cache\CacheBackend;
use Codemacher\TileProxy\Cache\CleanUpDbCacheBackend;
(static function ($extKey = 'tile_proxy'): void {
$extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class);
$deleteTileOnCacheCleanUp = intval($extConf->get('tile_proxy', 'deleteTileOnCacheCleanUp') ?? 0);
if ($deleteTileOnCacheCleanUp) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tile-proxy-cache'] = [
'frontend' => VariableFrontend::class,
'backend' => CacheBackend::class,
'options' => ['cacheType' => 'cache'],
'groups' => ['all'],
];
}
$deleteNominatimCacheOnCacheCleanUp = intval($extConf->get('tile_proxy', 'deleteNominatimCacheOnCacheCleanUp') ?? 0);
if ($deleteNominatimCacheOnCacheCleanUp) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['nominatim-proxy-cache'] = [
'frontend' => VariableFrontend::class,
'backend' => CleanUpDbCacheBackend::class,
'options' => ['cacheType' => 'cache'],
'groups' => ['all'],
];
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1676502776] = [
'nodeName' => 'boundingboxmap',
'priority' => 40,
'class' => \Codemacher\TileProxy\Form\Element\BoundingBoxMapElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1677664804] = [
'nodeName' => 'centerzoommap',
'priority' => 40,
'class' => \Codemacher\TileProxy\Form\Element\CenterZoomMapElement::class,
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['nodeRegistry'][1703249840] = [
'nodeName' => 'cacheinfo',
'priority' => 40,
'class' => \Codemacher\TileProxy\Form\Element\CacheInfoElement::class,
];
})();