Skip to content

Commit

Permalink
Merge pull request #66 from WouterRademaker/patch-2
Browse files Browse the repository at this point in the history
cleaner fix #62 and #63
  • Loading branch information
JeroenDeDauw authored Feb 16, 2022
2 parents 1bfbe7f + ac0da7f commit 37f70b3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Cache/GlossaryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public function getCache() {
* @return string
*/
public function getKeyForSubject( DIWikiPage $subject ) {
// FIXME Remove wfMemcKey dep.
return wfMemcKey( 'ext', 'semanticglossary', $subject->getSerialization() );
return $this->getCache()->makeKey( 'ext', 'semanticglossary', $subject->getSerialization() );
}

/**
Expand All @@ -62,9 +61,7 @@ public function getKeyForSubject( DIWikiPage $subject ) {
* @return string
*/
public function getKeyForLingo() {
// FIXME Remove wfMemcKey dep.
// This key should come from something like LingoCache::getKey()
return wfMemcKey( 'ext', 'lingo', 'lingotree' );
return $this->getCache()->makeKey( 'ext', 'lingo', 'lingotree' );
}

/**
Expand Down

0 comments on commit 37f70b3

Please sign in to comment.