Merge "Fix cache key calculation"

This commit is contained in:
jenkins-bot 2024-06-20 12:54:21 +00:00 committed by Gerrit Code Review
commit 6cf801995a

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