Skip to content
Snippets Groups Projects
Commit 28396c4b authored by rob_pr's avatar rob_pr Committed by Lucas Hedding
Browse files

Invalidate cache on migration group update

parent 71661449
No related branches found
No related tags found
1 merge request!5Issue #3227120: Invalidate cache on migration group update
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
namespace Drupal\migrate_plus\Entity; namespace Drupal\migrate_plus\Entity;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\Core\Config\Entity\ConfigEntityBase;
/** /**
...@@ -85,4 +86,12 @@ class MigrationGroup extends ConfigEntityBase implements MigrationGroupInterface ...@@ -85,4 +86,12 @@ class MigrationGroup extends ConfigEntityBase implements MigrationGroupInterface
return $this->dependencies; return $this->dependencies;
} }
/**
* {@inheritdoc}
*/
protected function invalidateTagsOnSave($update) {
parent::invalidateTagsOnSave($update);
Cache::invalidateTags(['migration_plugins']);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment