Fix cache key calculation

* Add missing prefix of cache key

Bug: T365112
Change-Id: I77b53c3fd84e9d36a7bc5530655e9274ac4d76d8
This commit is contained in:
Moritz Schubotz (physikerwelt) 2024-06-13 23:12:31 +02:00 committed by physikerwelt
parent 11021253f9
commit c53ca719eb
No known key found for this signature in database
GPG key ID: FCC793EFFA5FB13C

View file

@ -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' );
}