Skip to content

Commit

Permalink
Update content version purging to cover different kernel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom authored Nov 4, 2019
1 parent ec8c03f commit e582b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundle/Cache/PersistenceCachePurger.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ public function contentVersion($contentId, $versionNo)
return;
}

// todo Once we can require 2.2.2+, simplify to just invalidate "content-{$contentId}-version-{$versionNo}"
$this->cache->deleteItem("ez-content-version-info-${contentId}-${versionNo}");
// Some extra keys/tags here to make sure we cover differences between misc 7.x kernel versions
$this->cache->deleteItems(["ez-content-version-info-${contentId}-${versionNo}", "ez-content-${contentId}-version-list"]);
$this->cache->invalidateTags(["content-${contentId}-version-list", "content-{$contentId}-version-{$versionNo}"]);
}

Expand Down

0 comments on commit e582b4f

Please sign in to comment.