I have tried several articles to disable the page and template cache in Drupal 8. I am not using drush and find it very annoying I have to manually clear the cache after every change.
sites/default/default.services.yaml
- List item
- debug: true
- cache: false
- auto_reload: true
create sites/settings.php & sites/settings.local.php
- $config['system.performance']['css']['preprocess'] = FALSE;
- $config['system.performance']['js']['preprocess'] = FALSE;
- $settings['cache']['bins']['render'] = 'cache.backend.null';
- $settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
- $settings['cache']['bins']['page'] = 'cache.backend.null';
in development.services.yml add the following
1. twig.config:
debug: true
auto_reload: true
cache: false
Rebuild the cache
- http://yoursite/core/rebuild.php or drush cr
Disable cache in configuration -> performance
Be sure to disable dev tools cache
If I make an adjustment to page.html.twig nothing happens til I clear the cache, any other ideas would be great. This would be the latest version of Drupal 8