From c53ca719eb27ceafa555ec1303217aff492e5aec Mon Sep 17 00:00:00 2001 From: "Moritz Schubotz (physikerwelt)" Date: Thu, 13 Jun 2024 23:12:31 +0200 Subject: [PATCH] Fix cache key calculation * Add missing prefix of cache key Bug: T365112 Change-Id: I77b53c3fd84e9d36a7bc5530655e9274ac4d76d8 --- src/Render/RendererFactory.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Render/RendererFactory.php b/src/Render/RendererFactory.php index a3d2b88ef..a15890e3c 100644 --- a/src/Render/RendererFactory.php +++ b/src/Render/RendererFactory.php @@ -121,8 +121,12 @@ class RendererFactory { return $renderer; } - public function getFromHash( $hash ) { - $rpage = $this->cache->get( $hash ); + public function getFromHash( $inputHash ) { + $key = $this->cache->makeGlobalKey( + MathRenderer::class, + $inputHash + ); + $rpage = $this->cache->get( $key ); if ( $rpage === false ) { throw new InvalidArgumentException( 'Cache key is invalid' ); }