mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Replace wfMemcKey with $wgMemc->makeKey"
This commit is contained in:
commit
dd794ddd40
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue