oveleon/contao-glossary-bundle

Cache disable does not work in Contao 5

Closed this issue · 0 comments

zoglo commented

Issue

Config::get('debugMode') has been deprecated in Contao 4.12 and removed in Contao 5. However, this hasn't been documented in the UPGRADE.md.

$objTemplate->cacheStatus = !Config::get('debugMode');

Fix

Should use following instead:

System::getContainer()->getParameter('kernel.debug')