From dd812b69b23990761abf0c83442471d4c0a2ff53 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 21 May 2024 09:43:53 -0400 Subject: [PATCH] Revert 9645 This reverts commit f33c8679cb48420d1bac8d530450b03b2d60ff35. --- src/Sites/Site.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Sites/Site.php b/src/Sites/Site.php index 6cec6689a1a..dc93da010c6 100644 --- a/src/Sites/Site.php +++ b/src/Sites/Site.php @@ -15,7 +15,6 @@ class Site implements Augmentable protected $handle; protected $config; protected $rawConfig; - private $absoluteUrlCache; public function __construct($handle, $config) { @@ -72,15 +71,11 @@ public function attributes() public function absoluteUrl() { - if ($this->absoluteUrlCache !== null) { - return $this->absoluteUrlCache; - } - if (Str::startsWith($url = $this->url(), '/')) { $url = Str::ensureLeft($url, request()->getSchemeAndHttpHost()); } - return $this->absoluteUrlCache = Str::removeRight($url, '/'); + return Str::removeRight($url, '/'); } public function relativePath($url)