diff --git a/src/StaticCaching/NoCache/DatabaseSession.php b/src/StaticCaching/NoCache/DatabaseSession.php index 08029ff51ad..c5b14b76851 100644 --- a/src/StaticCaching/NoCache/DatabaseSession.php +++ b/src/StaticCaching/NoCache/DatabaseSession.php @@ -11,7 +11,7 @@ public function write() public function restore() { - $regions = DatabaseRegion::where('url', $this->url)->get(['key']); + $regions = DatabaseRegion::where('url', md5($this->url))->get(['key']); $this->regions = $regions->map->key; @@ -38,7 +38,7 @@ protected function cacheRegion(Region $region) DatabaseRegion::updateOrCreate([ 'key' => $region->key(), ], [ - 'url' => $this->url, + 'url' => md5($this->url), 'region' => serialize($region), ]); }