summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-10-26 18:12:09 (GMT)
committerAlex Pott2016-10-26 18:12:09 (GMT)
commit87fdc923be2a1bf5fdf8c7c367a45ed10874be39 (patch)
treeafb3c8bcc2e02a03192eaef8093a3007fdf6cf02
parentc3cad9bd3906c91b6e1b95ee744a44817a845d45 (diff)
Issue #2694391 by chx, dawehner, Yogesh Pawar, benjy, iMiksu, catch, alexpott, Fabianx: Separate cache bin for migrations
-rw-r--r--core/modules/migrate/migrate.services.yml8
-rw-r--r--sites/example.settings.local.php8
2 files changed, 15 insertions, 1 deletions
diff --git a/core/modules/migrate/migrate.services.yml b/core/modules/migrate/migrate.services.yml
index 9273ac3..1a4f64d 100644
--- a/core/modules/migrate/migrate.services.yml
+++ b/core/modules/migrate/migrate.services.yml
@@ -21,6 +21,12 @@ services:
plugin.manager.migrate.id_map:
class: Drupal\migrate\Plugin\MigratePluginManager
arguments: [id_map, '@container.namespaces', '@cache.discovery', '@module_handler']
+ cache.discovery_migration:
+ class: Drupal\Core\Cache\CacheBackendInterface
+ tags:
+ - { name: cache.bin }
+ factory: cache_factory:get
+ arguments: [discovery_migration]
plugin.manager.migration:
class: Drupal\migrate\Plugin\MigrationPluginManager
- arguments: ['@module_handler', '@cache.discovery', '@language_manager']
+ arguments: ['@module_handler', '@cache.discovery_migration', '@language_manager']
diff --git a/sites/example.settings.local.php b/sites/example.settings.local.php
index c3347ad..b1f73dd 100644
--- a/sites/example.settings.local.php
+++ b/sites/example.settings.local.php
@@ -67,6 +67,14 @@ $config['system.performance']['js']['preprocess'] = FALSE;
# $settings['cache']['bins']['render'] = 'cache.backend.null';
/**
+ * Disable caching for migrations.
+ *
+ * Uncomment the code below to only store migrations in memory and not in the
+ * database. This makes it easier to develop custom migrations.
+ */
+# $settings['cache']['bins']['discovery_migration'] = 'cache.backend.memory';
+
+/**
* Disable Dynamic Page Cache.
*
* Note: you should test with Dynamic Page Cache enabled, to ensure the correct