Twig file only read in development mode

by Battle Mage   Last Updated December 06, 2018 15:07 PM

It appears as though the site will only use a new twig file when in development mode, but not in normal production mode.

This is 8.6.3 multi-site set up.

Things I have tried:

  • clearing cache from the admin control panel
  • truncating cache tables
  • deleting /sites/site.com/files/php/twig/*
  • running update.php

When caching is enabled, this is the last twig file that gets loaded:

<!-- BEGIN OUTPUT from 'themes/themename/templates/region/region.html.twig' -->

When caching is disabled, all the other twig files are loaded as expected.

Tags : theming


Related Questions


Features can export everything?

Updated March 26, 2015 10:02 AM


No image style found

Updated March 29, 2015 15:02 PM


Best way to have 5 or 6 themes in one site drupal 7

Updated April 09, 2015 22:03 PM