Skip to content

Instantly share code, notes, and snippets.

@aramboyajyan
Created November 24, 2018 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aramboyajyan/aa57c998557ab53fda00e3c85b7c209c to your computer and use it in GitHub Desktop.
Save aramboyajyan/aa57c998557ab53fda00e3c85b7c209c to your computer and use it in GitHub Desktop.
Local settings for Drupal 8
<?php
/**
* @file
* Development settings.
*
* Created by: Aram Boyajyan
* https://www.aram.cz/
*/
// Make sure that the development services are enabled.
//
// To disable twig caching, add the following code there:
// parameters:
// twig.config:
// debug: true
// auto_reload: true
// cache: false
$settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml';
// Disable CSS and JS aggregation.
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
// Disable render, dynamic page and page caches.
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
$settings['cache']['bins']['page'] = 'cache.backend.null';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment