diff --git a/core/lib/Drupal/Core/CoreBundle.php b/core/lib/Drupal/Core/CoreBundle.php index 1afb295..6be3fb6 100644 --- a/core/lib/Drupal/Core/CoreBundle.php +++ b/core/lib/Drupal/Core/CoreBundle.php @@ -346,7 +346,7 @@ protected 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_debug', FALSE), + 'cache' => settings()->get('twig_cache', TRUE), 'base_template_class' => 'Drupal\Core\Template\TwigTemplate', // @todo Remove in followup issue // @see http://drupal.org/node/1712444. diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php old mode 100644 new mode 100755 index 24ba7d7..909a2c8 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -290,7 +290,7 @@ * * Not recommended in production environments. */ -$settings['twig_debug'] = FALSE; +# $settings['twig_debug'] = TRUE; /** * Twig auto-reload: @@ -299,7 +299,17 @@ * * Not recommended in production environments. */ -$settings['twig_auto_reload'] = FALSE; +# $settings['twig_auto_reload'] = TRUE; + +/** + * Twig cache: + * + * Disabling the Twig cache will store the compiled Twig templates in RAM + * instead of the file system. + * + * Not recommended in production environments. + */ +# $settings['twig_cache'] = FALSE; /** * External access proxy settings: