mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
Fix cache key calculation
* Add missing prefix of cache key Bug: T365112 Change-Id: I77b53c3fd84e9d36a7bc5530655e9274ac4d76d8
This commit is contained in:
parent
11021253f9
commit
c53ca719eb
|
@ -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' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue