When to Use Drupal Config Ignore vs. Configuration Split in Team Workflows
In a Drupal team workflow, sooner or later two requirements collide: developers want Git (config/sync) to be the single source of truth for site configuration, while site administrators want to tweak a Webform, adjust site slogans, or run local debugging modules without drush cim overwriting their work on the next deployment. Drupal’s contributed ecosystem offers two popular tools—Config Ignore (config_ignore) and Configuration Split (config_split)—and knowing which tool solves which problem prevents configuration drift.
Editorial illustration: use config_ignore to leave specific live-edited settings in the database, and config_split for environment-specific modules and YAML.
Summary
- Configuration Split keeps all configuration tracked in Git across separate per-environment folders (such as
localvs.prod), making it the right tool for toggling modules likedevelorstage_file_proxy. - Config Ignore tells Drupal’s configuration import/export pipeline to skip listed configuration items completely so live database values are preserved during
drush cim. - Never use Config Ignore to hide
core.extensionor developer modules—that causes silent environment drift. - Keep your ignored list tiny (for example, specific Webforms or marketing settings) and pair it with a disciplined
drush cimreview workflow.
What Config Split solves (and why it stays in Git)
Configuration Split is built for known, version-controlled differences between environments. When you configure a local split and activate it only in settings.local.php, drush cex routes devel, views_ui, and stage_file_proxy into config/splits/local while keeping config/sync clean for production.
Every environment’s intended state remains visible in Git pull requests. If you have not set up your environment splits yet, see our step-by-step guide on managing environment-specific Drupal modules with Configuration Split.
What Config Ignore solves (and the trade-off it creates)
Config Ignore (which supports Drupal 8.8 through 10 and 11 in its 8.x-3.4 release) solves a different problem: settings that non-developers legitimately edit directly in production—such as:
- A client-managed
webform.webform.*contact or event registration form - Simple site text like
system.site:sloganor cookie banner copy - Marketing or analytics IDs edited by content admins (when not stored in State API or environment variables)
When a configuration name is listed in config_ignore.settings, drush cim skips overwriting that object in the active database.
The trade-off is obvious: anything you ignore is no longer guaranteed by Git. If an admin deletes a Webform field in production, staging does not automatically match production unless you pull a sanitized database copy—see how to sanitize a Drupal staging database.
(For sites needing editors to flag specific config entities per environment from the UI, companion modules such as Config Ignore (Site-Specific) also extend config_ignore by storing site-specific ignore lists in the database.)
Quick comparison: Config Ignore vs. Config Split vs. settings.php
- Use
$config[...]overrides insettings.php/settings.local.phpfor secrets, API keys, SMTP credentials, and simple environment toggles (never commit secrets toconfig/sync). - Use Configuration Split (
config_split) for enabling/disabling modules per environment (devel,stage_file_proxy) or maintaining distinct environment YAML that should still be reviewed in Git. - Use Config Ignore (
config_ignore) sparingly for non-structural settings that site editors manage in production UI and must not be overwritten bydrush cim.
Step-by-step: Keep Config Ignore safe in production
- Audit what truly needs to be ignored. Before adding a config key to
config_ignore.settings, ask whether it actually belongs in Drupal’s State API or a content entity (like a custom Block or Taxonomy term) rather than exported YAML. - Avoid broad wildcards like
webform.webform.*unless intended. Ignoring all Webforms means developers cannot deploy new structured forms via Git either. Ignore only the specific form IDs editors own (for example,webform.webform.contact_us). - Never ignore
core.extension, content types, or field storage. Ignoring structural schema config breaks deployments when another module or view depends on a field that only exists in one database. - Review every
drush cimdiff in CI and staging. Always follow a Drupal config import review checklist so unexpected config deletions or overrides are caught before production.
Common mistakes
- Using Config Ignore as a shortcut because
drush cexfelt noisy. Ifdrush cexexportsdevelor local caching settings, the right fix isconfig_split—not ignoringcore.extensionorsystem.performance. - Forgetting that ignored config must still exist on a fresh site install. If you spin up a brand-new site from
config/sync(drush si --existing-config) and an ignored config file is missing fromconfig/sync, features referencing it can fail until created. - Confusing
config_ignorewithsettings.phpoverrides.settings.phpoverrides values in runtime memory without touching exported YAML, whereasconfig_ignoretells config sync to skip importing/exporting specific config objects.
Why this matters
Clean configuration management lets Drupal teams deploy weekly without fear of wiping an editor’s live form changes—and without accidentally enabling development tools on production. Choosing the right tool for each setting keeps Git trustworthy and editors productive.
My Take
Default to Configuration Split plus settings.php environment overrides for 95% of Drupal projects. Bring in Config Ignore only when a non-technical stakeholder genuinely needs to edit a specific config object (like a single Webform) in production—and keep that ignore list explicit, documented, and under ten lines.
Conclusion
Use settings.php overrides for secrets and URLs, Configuration Split for environment-specific modules and versioned YAML differences, and Config Ignore strictly for specific live-edited config objects that must survive drush cim without overwriting production changes.