core/composer.json | 1 + sites/example.settings.local.php | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/core/composer.json b/core/composer.json index 26938e3..eb1d1cc 100644 --- a/core/composer.json +++ b/core/composer.json @@ -105,6 +105,7 @@ "drupal/seven": "self.version", "drupal/shortcut": "self.version", "drupal/simpletest": "self.version", + "drupal/smartcache": "self.version", "drupal/standard": "self.version", "drupal/stark": "self.version", "drupal/statistics": "self.version", diff --git a/sites/example.settings.local.php b/sites/example.settings.local.php index e8cd909..c9933e2 100644 --- a/sites/example.settings.local.php +++ b/sites/example.settings.local.php @@ -51,17 +51,25 @@ /** * Disable the render cache (this includes the page cache). * + * Note: you should test with the render cache enabled, to ensure the correct + * cacheability metadata is present (and hence the expected behavior). However, + * in the early stages of development, you may want to disable it. + * * This setting disables the render cache by using the Null cache back-end * defined by the development.services.yml file above. * * Do not use this setting until after the site is installed. */ -$settings['cache']['bins']['render'] = 'cache.backend.null'; +# $settings['cache']['bins']['render'] = 'cache.backend.null'; /** * Disable SmartCache. + * + * Note: you should test with SmartCache enabled, to ensure the correct + * cacheability metadata is present (and hence the expected behavior). However, + * in the early stages of development, you may want to disable it. */ -$settings['cache']['bins']['smart_cache_html'] = 'cache.backend.null'; +# $settings['cache']['bins']['smart_cache_html'] = 'cache.backend.null'; /** * Allow test modules and themes to be installed.