Skip to content

Commit

Permalink
Fix ElementCache::withElement using the wrong field to retrieve the site
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed Jul 30, 2019
1 parent 058ed26 commit afc491d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elementCache/ElementCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit afc491d

Please sign in to comment.