Skip to content

Commit fa6e14c

Browse files
committed
2 parents 87380c3 + 29e02bf commit fa6e14c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/Element.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,8 @@ public static function indexHtml(
12891289
}
12901290
}
12911291

1292-
// Only cache if there's no search term
1293-
if (!$elementQuery->search) {
1292+
// Only cache if there's no search term or relation param
1293+
if (!$elementQuery->search && !$elementQuery->relatedTo) {
12941294
$elementQuery->cache();
12951295
}
12961296

0 commit comments

Comments
 (0)