Features that should never be exported

Last updated on
17 August 2016

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Some feature settings/components should never be exported because they represent cached, temporary, security related, or other environment specific settings You can use the Features Banish Module (http://drupal.org/project/features_banish) to specify features components that you want to make sure are never exported, or you can just make sure that you don't ever export them. As you add modules with additional variables and other settings you make need to check this again. Feel free to add to the list here if you find modules with settings that should never be exported.

Here is a list in features_banish format so you can copy and paste into your features module:

;
; Banished Features via features_banish module.
; =============================
;
; Core
; -------
; Changes when cron is run
features_banish[variable][] = cron_last
; Security: Allows for running cron.php remotely
features_banish[variable][] = cron_key
; What install task the site is currently on.
features_banish[variable][] = install_task
; Datestamp the site was installed.
features_banish[variable][] = install_time
; Name of the install profile used for installing site
features_banish[variable][] = install_profile
; An error flag when Drupal can't talk to the internet.
features_banish[variable][] = drupal_http_request_fails
; A list css files that are being cached by drupal
features_banish[variable][] = drupal_css_cache_files
; A list js files that are being cached by drupal
features_banish[variable][] = drupal_js_cache_files
; Cached parent-child relationships of menu items.
features_banish[variable][] = menu_masks
; the last timestamp when module updates were checked.
features_banish[variable][] = update_last_check
; the last timestamp when email about updates was sent.
features_banish[variable][] = update_last_email_notification
; list of parsed javascript files.
features_banish[variable][] = javascript_parsed
; Changes each time the css and jss cache is reset.
features_banish[variable][] = css_js_query_string
; Flag when the site is in maintenance mode.
features_banish[variable][] = maintenance_mode
; Private key used to generate tokens.
features_banish[variable][] = drupal_private_key
; Used to short-circuit path lookups
features_banish[variable][] = path_alias_whitelist
;
; Features
; --------
; Cached md5 hash of features export objects.
features_banish[variable][] = features_codecache
; Used to avoid race conditions.
features_banish[variable][] = features_semaphore
; Cache of orphaned features
features_banish[variable][] = features_ignored_orphans
;
; Other
; -------
; Ctools - used to cleanup old object caches.
features_banish[variable][] = ctools_last_cron
; Entity API - List of entity cache tables
features_banish[variable][] = entity_cache_tables_created
; l10n_update - Last time translation availability was checked
features_banish[variable][] = l10n_update_last_check
; l10n_update - Translation status of enabled modules
features_banish[variable][] = l10n_update_translation_status
; Module Filter - Recent modules timestamps
features_banish[variable][] = module_filter_recent_modules
; Environment - The currently enabled environment
features_banish[variable][] = environment
; Environment - The overridden environment
features_banish[variable][] = environment_override
; SMTP - Username
features_banish[variable][] = smtp_username
; SMTP - Password
features_banish[variable][] = smtp_password
; xmlsitemap - Last time the sitemap was generated
features_banish[variable][] = xmlsitemap_generated_last
; xmlsitemap - Whether the sitemap needs to be regenerated
features_banish[variable][] = xmlsitemap_regenerate_needed

You should probably never export settings that change per environment (production vs test vs dev) so you don't end up polluting settings from one environment to another. Here is a list of settings that are often specific to an environment. You may want to review this list more closely before copying it.

; Core - Performance Settings
features_banish[variable][] = preprocess_js
features_banish[variable][] = preprocess_css
features_banish[variable][] = cache
features_banish[variable][] = page_cache_maximum_age
features_banish[variable][] = cache_lifetime
; Core - Error reporting
features_banish[variable][] = error_level
features_banish[variable][] = dblog_row_limit
; Mail dev settings
features_banish[variable][] = maillog_devel
features_banish[variable][] = maillog_log
features_banish[variable][] = maillog_send
features_banish[variable][] = mail_system

Help improve this page

Page status: No known problems

You can: