diff --git a/src/Illuminate/View/View.php b/src/Illuminate/View/View.php index 1c5da13bcda9..82596c2b9785 100755 --- a/src/Illuminate/View/View.php +++ b/src/Illuminate/View/View.php @@ -213,36 +213,7 @@ protected function renderContents() */ protected function getContents() { - $hash = hash('xxh3', join(',', $this->fingerprint($data = $this->gatherData()))); - - if ($cache = static::$cache[($path = $this->path).$hash] ?? null) { - return $cache; - } - - static::$cache[$path.$hash] = $this->engine->get($path, $data); - - return static::$cache[$path.$hash]; - } - - /** - * Fingerprint the data so that we can find identical renders. - */ - private function fingerprint(array $data): array - { - return array_map( - function($item) { - if (is_array($item)) { - return serialize($this->fingerprint($item)); - } - - if (is_object($item)) { - return spl_object_hash($item); - } - - return serialize($item); - }, - $data, - ); + return $this->engine->get($this->path, $this->gatherData()); } /**