mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +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
|
||||
$hash = md5( $wikitext );
|
||||
$key = wfMemcKey( 'visualeditor', 'serialization', $hash );
|
||||
$key = $wgMemc->makeKey( 'visualeditor', 'serialization', $hash );
|
||||
$wgMemc->set( $key, $wikitext,
|
||||
$this->veConfig->get( 'VisualEditorSerializationCacheTimeout' ) );
|
||||
|
||||
|
@ -243,7 +243,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
*/
|
||||
protected function trySerializationCache( $hash ) {
|
||||
global $wgMemc;
|
||||
$key = wfMemcKey( 'visualeditor', 'serialization', $hash );
|
||||
$key = $wgMemc->makeKey( 'visualeditor', 'serialization', $hash );
|
||||
return $wgMemc->get( $key );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue