Commit 9f98de69 authored by MorinLuc0's avatar MorinLuc0 Committed by bojanz

Issue #3075519 by MorinLuc0, bojanz: Do not invalidate user caches when the profile is saved

parent a50f8028
......@@ -2,7 +2,6 @@
namespace Drupal\profile\Entity;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Entity\EditorialContentEntityBase;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityTypeInterface;
......@@ -198,17 +197,6 @@ class Profile extends EditorialContentEntityBase implements ProfileInterface {
return $this;
}
/**
* {@inheritdoc}
*/
public function getCacheTagsToInvalidate() {
$tags = parent::getCacheTagsToInvalidate();
return Cache::mergeTags($tags, [
'user:' . $this->getOwnerId(),
'user_view',
]);
}
/**
* {@inheritdoc}
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment