Skip to content

Commit

Permalink
Also clear static cache of EntityAccessControlHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrenssen committed Jun 22, 2020
1 parent ed4bfcd commit 0573b85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Drupal/Driver/Cores/Drupal8.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ public function languageDelete(\stdClass $language) {
public function clearStaticCaches() {
drupal_static_reset();
\Drupal::service('cache_tags.invalidator')->resetChecksums();
foreach (\Drupal::entityTypeManager()->getDefinitions() as $definition) {
\Drupal::entityTypeManager()->getAccessControlHandler($definition->id())->resetCache();
}
}

/**
Expand Down

0 comments on commit 0573b85

Please sign in to comment.