Merge "Replace wfMemcKey with $wgMemc->makeKey"

This commit is contained in:
jenkins-bot 2018-07-02 15:06:57 +00:00 committed by Gerrit Code Review
commit dd794ddd40

View file

@ -215,7 +215,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
// Store the corresponding wikitext, referenceable by a new key // Store the corresponding wikitext, referenceable by a new key
$hash = md5( $wikitext ); $hash = md5( $wikitext );
$key = wfMemcKey( 'visualeditor', 'serialization', $hash ); $key = $wgMemc->makeKey( 'visualeditor', 'serialization', $hash );
$wgMemc->set( $key, $wikitext, $wgMemc->set( $key, $wikitext,
$this->veConfig->get( 'VisualEditorSerializationCacheTimeout' ) ); $this->veConfig->get( 'VisualEditorSerializationCacheTimeout' ) );
@ -243,7 +243,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
*/ */
protected function trySerializationCache( $hash ) { protected function trySerializationCache( $hash ) {
global $wgMemc; global $wgMemc;
$key = wfMemcKey( 'visualeditor', 'serialization', $hash ); $key = $wgMemc->makeKey( 'visualeditor', 'serialization', $hash );
return $wgMemc->get( $key ); return $wgMemc->get( $key );
} }