Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
change
             return wfMemcKey(.........);
to
                $cache = self::getCache();
                return  $cache->makeKey( ......... );
in SemanticGlossary/src/Cache/GlossaryCache.php
  • Loading branch information
WouterRademaker authored Jan 20, 2022
1 parent 5983887 commit 352aa1d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Cache/GlossaryCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public function getCache() {
* @return string
*/
public function getKeyForSubject( DIWikiPage $subject ) {
// FIXME Remove wfMemcKey dep.
return wfMemcKey( 'ext', 'semanticglossary', $subject->getSerialization() );
$cache = self::getCache();
return $cache->makeKey( 'ext', 'semanticglossary', $subject->getSerialization() );
}

/**
Expand All @@ -62,9 +62,8 @@ 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' );
$cache = self::getCache();
return $cache->makeKey( 'ext', 'lingo', 'lingotree' );
}

/**
Expand Down

0 comments on commit 352aa1d

Please sign in to comment.