If you’ve ever worked on theming in Drupal, you know the pain: enabling Twig debug or disabling caches usually required digging into services.yml, updating settings.php, or installing contrib modules.
With Drupal 10.1, this process has been simplified. A new Development settings page in core now allows developers to manage these features directly from the admin UI.
👉 Navigate to: Configuration → Development settings
What You Can Do with Development Settings
1. Enable Twig Debug Mode
The Twig development mode makes template debugging much easier. Once enabled, you can:
- See which Twig template is responsible for rendering each element.
- Reload the page and view changes immediately, without running
drush cror clearing caches manually.
This saves a huge amount of time during theme development.
2. Disable Drupal Cache
The new page also lets you disable Drupal cache with a single click:
- Render cache – caches individual render elements and blocks.
- Dynamic page cache – caches HTML responses for logged-in users.
- Page cache – caches entire pages for anonymous visitors.
By temporarily disabling these caches, developers can test changes faster and ensure templates update instantly.
Why It Matters
- 🔧 For Drupal developers
Disabling caches during development improves productivity and speeds up theme debugging. - 🚀 For production sites
Caches must remain enabled. They are critical for:- Performance – ensuring fast page load times.
- Security – preventing data leakage between authenticated users.
Best Practices
- Development → Twig debug ON, caches OFF
- Production → Twig debug OFF, caches ON
This approach ensures a smooth workflow during theming and testing while keeping live websites optimized and secure.
Conclusion
The Drupal 10.1 Development settings page is one of the most useful new features for site builders and theme developers. It eliminates the hassle of editing config files and provides a clean UI for managing Twig debug and caching.
👉 Learn more about this feature in the official Drupal.org change record.
Comments