drupal 8 disable twig cache, drupal 8 twig template cache disable, drupal twig debug

phpcoderblog

– twig settings:

– go to /sites/default/services.yml and set config to:

parameters:
twig.config:
debug: true
auto_reload: true
cache: false

P.S. `debug` is optional here. If `true` it provides additional information. To see that information go to source code of the page.

* IMPORTANT NOTE: By default, Drupal caches any rendering it performs for blocks and entities, to speed up subsequent page loads. This means that changes to Twig templates for these will not take effect immediately. There is no way to disable this currently (8.0.0-beta9), maybe they will fix it in future releases.

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s