forked from Snck3rs/contao-leaflet-maps
Bypass filesystem cache in debug mode.
This commit is contained in:
@@ -49,5 +49,13 @@ class NetzmachtContaoLeafletExtension extends Extension
|
|||||||
$loader->load('mappers.yml');
|
$loader->load('mappers.yml');
|
||||||
$loader->load('encoders.yml');
|
$loader->load('encoders.yml');
|
||||||
$loader->load('layers.yml');
|
$loader->load('layers.yml');
|
||||||
|
|
||||||
|
if (!$container->hasDefinition('netzmacht.contao_leaflet.cache')) {
|
||||||
|
if ($container->getParameter('kernel.debug')) {
|
||||||
|
$container->setAlias('netzmacht.contao_leaflet.cache', 'netzmacht.contao_leaflet.cache.debug');
|
||||||
|
} else {
|
||||||
|
$container->setAlias('netzmacht.contao_leaflet.cache', 'netzmacht.contao_leaflet.cache.default');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,9 +26,6 @@ services:
|
|||||||
arguments:
|
arguments:
|
||||||
- '%netzmacht.contao_leaflet.filters%'
|
- '%netzmacht.contao_leaflet.filters%'
|
||||||
|
|
||||||
netzmacht.contao_leaflet.cache:
|
|
||||||
alias: 'netzmacht.contao_leaflet.cache.default'
|
|
||||||
|
|
||||||
netzmacht.contao_leaflet.cache.default:
|
netzmacht.contao_leaflet.cache.default:
|
||||||
class: Doctrine\Common\Cache\FilesystemCache
|
class: Doctrine\Common\Cache\FilesystemCache
|
||||||
arguments:
|
arguments:
|
||||||
|
|||||||
Reference in New Issue
Block a user