DrupalCon Atlanta will be held next year from 24-27 March 2025 in Atlanta, Georgia, and the Call for Speakers is now open! Do you have Drupal knowledge to share? We invite you to submit your session! Contributing your voice and expertise drives Drupal’s continued evolution and success.
By mherchel on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
There is a new “Development settings” page at /admin/config/development/settings
that contains Twig development settings, as well as the ability to disable various caches.
The settings are stored within the state
table (as opposed to configuration), so the settings cannot be accidentally committed and uploaded to production environments.
The settings available are
- Twig development mode - This checkbox exposes two Twig development checkboxes and checks them by default.
- Twig debug mode - This enables Twig debug, which provides the
dump()
function, outputs template suggestions to HTML comments, and will also enables Twig auto-reload, which tells Twig to reload any templates that have been modified by the developer. - Disable Twig cache - This completely disables the Twig cache.
- Do not cache markup - This disables the render cache, dynamic page cache, and page cache.
Documentation
See the Disable Twig caching documentation page, for example on how to enable Twig debugging via Drush.
Attachment | Size |
---|---|
Development_settings___Drupal.png | 91.73 KB |
Impacts:
Site builders, administrators, editors
Module developers
Themers
Distribution developers