From afc491d1150b8274e2b7e82bfe78dd185632c49b Mon Sep 17 00:00:00 2001 From: Sebastian Lenz <github@sebastian-lenz.de> Date: Tue, 30 Jul 2019 10:30:52 +0200 Subject: [PATCH] Fix ElementCache::withElement using the wrong field to retrieve the site --- src/elementCache/ElementCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elementCache/ElementCache.php b/src/elementCache/ElementCache.php index 4c7d059..eb91301 100644 --- a/src/elementCache/ElementCache.php +++ b/src/elementCache/ElementCache.php @@ -137,7 +137,7 @@ static public function with(string $key, callable $callback) { static public function withElement(string $key, ElementInterface $element, callable $callback) { $key .= ';element=' . $element->getId(); if ($element instanceof Element) { - $key .= ';site=' . $element->handle; + $key .= ';siteId=' . $element->siteId; } return self::with($key, $callback);