Commit b6ee00e2 authored by alexpott's avatar alexpott
Browse files

Issue #2433595 by chx, Berdir: WebTestBase::refreshVariables only resets...

Issue #2433595 by chx, Berdir: WebTestBase::refreshVariables only resets cache_tags.invalidator.checksum
parent 37fec7e9
......@@ -41,6 +41,19 @@ public function invalidateTags(array $tags) {
}
}
/**
* Reset statically cached tags in all cache tag checksum services.
*
* This is only used by tests.
*/
public function resetChecksums() {
foreach ($this->invalidators as $invalidator) {
if ($invalidator instanceof CacheTagsChecksumInterface) {
$invalidator->reset();
}
}
}
/**
* Adds a cache tags invalidator.
*
......
......@@ -1192,7 +1192,7 @@ protected function resetAll() {
*/
protected function refreshVariables() {
// Clear the tag cache.
\Drupal::service('cache_tags.invalidator.checksum')->reset();
\Drupal::service('cache_tags.invalidator')->resetChecksums();
foreach (Cache::getBins() as $backend) {
if (is_callable(array($backend, 'reset'))) {
$backend->reset();
......
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