summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Koorengevel <BertKoor@users.noreply.github.com>2026-03-26 16:12:34 +0100
committerGitHub <noreply@github.com>2026-03-26 15:12:34 +0000
commit34dff096c21652db243cda862afee224fd6ca92a (patch)
tree17547ffe2cbfc8e77929e30aec1f814d8a937ab8
parent0a5ef79412ff95f494e2782f339d542cf2286f8f (diff)
downloadwebtrees-34dff096c21652db243cda862afee224fd6ca92a.tar.gz
webtrees-34dff096c21652db243cda862afee224fd6ca92a.tar.bz2
webtrees-34dff096c21652db243cda862afee224fd6ca92a.zip
cache of places lacked tree id (#5343)
-rw-r--r--app/Place.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Place.php b/app/Place.php
index 0b9cd1e71d..01d11141c9 100644
--- a/app/Place.php
+++ b/app/Place.php
@@ -113,7 +113,7 @@ class Place
*/
public function id(): int
{
- return Registry::cache()->array()->remember('place-' . $this->place_name, function (): int {
+ return Registry::cache()->array()->remember('place-' . $this->place_name . '@' . $this->tree->id(), function (): int {
// The "top-level" place won't exist in the database.
if ($this->parts->isEmpty()) {
return 0;