Score:-2

Is it possible to not have to clear the caches every time a twig template file is edited in development?

ng flag

I've got "cache" set to false in service.yml - but I still have to clear the Drupal caches for each template change I make. This is obviously time-consuming if you're doing some trial and error testing. Is there a way to bypass the template caching while developing?

Drupal 9.

enter image description here

quantumized avatar
ng flag
Ugg. Sadly, no. Adding "$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';" to settings.local.php breaks the site with Superfish errors.
cn flag
You'll probably need to pick that up as a new question or bug report to the relevant module, I don't think there's another way to disable cache automatically
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.