Skip to content

Instantly share code, notes, and snippets.

@juancarielo
Last active September 28, 2022 00:11
Show Gist options
  • Select an option

  • Save juancarielo/5f42cebc1dc72d0e8c3f602c0c57663f to your computer and use it in GitHub Desktop.

Select an option

Save juancarielo/5f42cebc1dc72d0e8c3f602c0c57663f to your computer and use it in GitHub Desktop.

Disable cache Drupal 9

Now you don't need to run drush cr every time.

parameters:
http.response.debug_cacheability_headers: true
twig.config:
debug: true
auto_reload: true
cache: false
services:
cache.backend.null:
class: Drupal\Core\Cache\NullBackendFactory
<?php
$settings['container_yamls'][] = __DIR__ . '/services.dev.yml';
$config['system.performance']['css']['preprocess'] = FALSE;
$config['system.performance']['js']['preprocess'] = FALSE;
$settings['cache']['bins']['page'] = 'cache.backend.null';
$settings['cache']['bins']['render'] = 'cache.backend.null';
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment