Skip to content
Snippets Groups Projects
Commit dc28748c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2003578 by Jon Pugh, joelpittet: Fixed twig_cache() must be FALSE in...

Issue #2003578 by Jon Pugh, joelpittet: Fixed twig_cache() must be FALSE in install.php registerTwig because we don't know if files folder is writable yet.
parent 1c3bc1dc
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -99,7 +99,9 @@ public static function registerTwig(ContainerBuilder $container) {
// This is saved / loaded via drupal_php_storage().
// All files can be refreshed by clearing caches.
// @todo ensure garbage collection of expired files.
'cache' => settings()->get('twig_cache', TRUE),
// When in the installer, twig_cache must be FALSE until we know the
// files folder is writable.
'cache' => ((MAINTENANCE_MODE != 'install') ? settings()->get('twig_cache', TRUE) : FALSE),
'base_template_class' => 'Drupal\Core\Template\TwigTemplate',
// @todo Remove in followup issue
// @see http://drupal.org/node/1712444.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment