Skip to content

Instantly share code, notes, and snippets.

@nathandentzau
Last active May 10, 2019 14:47
Show Gist options
  • Save nathandentzau/02300ebcca43f70f0b4bcc51de5e4108 to your computer and use it in GitHub Desktop.
Save nathandentzau/02300ebcca43f70f0b4bcc51de5e4108 to your computer and use it in GitHub Desktop.
Local development settings for Drupal 8 in my Lando setup
# Local development services.
#
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
<?php
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/lando.services.yml';
$settings['extension_discovery_scan_tests'] = FALSE;
$cache_bins = [
'bootstrap',
'config',
'data',
'default',
'discovery',
'dynamic_page_cache',
'entity',
'menu',
'migrate',
'render',
'rest',
'static',
'toolbar',
];
foreach ($cache_bins as $bin) {
$settings['cache']['bins'][$bin] = 'cache.backend.null';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment