Skip to content
Snippets Groups Projects

Issue #3227120: Invalidate cache on migration group update

Merged rob_pr requested to merge issue/migrate_plus-3227120:3227120-invalidate-cache-on into 8.x-5.x
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -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']);
 
}
 
}
}
Loading