Skip to content

Commit

Permalink
fix: Fixed an issue where the homepage metacontainer cache did not ge…
Browse files Browse the repository at this point in the history
…t properly cleared ([#1514](#1514))
  • Loading branch information
khalwat committed Sep 21, 2024
1 parent 0049fa3 commit 60252d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/MetaBundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,8 @@ public function invalidateMetaBundleByElement($element, bool $isNew = false)
if ($element && $invalidateMetaBundle) {
$uri = $element->uri ?? '';
// Normalize the incoming URI to account for `__home__`
if ($element->slug) {
$uri = ($element->slug === '__home__') ? '' : $uri;
if ($element->uri) {
$uri = ($element->uri === '__home__') ? '' : $uri;
}
// Invalidate sitemap caches after an existing element is saved
list($sourceId, $sourceBundleType, $sourceHandle, $sourceSiteId, $typeId)
Expand Down

0 comments on commit 60252d2

Please sign in to comment.