Drupal 8 Theming - Part 02 - Disable Cache, Enable Twig Debug

Nov 17, 2015

In this episode of Drupal 8 Theming we are going to learn how to disable Drupal 8 cache and enable Twig debug mode so that we can develop our theme without having to clear the cache all the time.

This all sounds very simple but as you will see in this video it's actually very convoluted if you want to do it the right way.

I will show you how to disable cache for Drupal 8 in your development environment so that you can easily disable it once the site goes live. Because of course you want all of that cache goodness for your production environment as it will make your site much faster.

You will also learn how to enable twig debug - one of the Drupal 8 killer features that will help us develop our theme by giving us helpful information about our templates, suggest template names and show us what information from the system we have available on the current page. All good stuff.


Hi! I'm Karim Boudjema, the developer and site-builder of this site. I'm currently working as a freelance Drupal developer.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.