mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +00:00
Merge "Fix cache key calculation"
This commit is contained in:
commit
6cf801995a
|
@ -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