From: Aaron Schulz Date: Tue, 30 Jun 2015 18:04:33 +0000 (-0700) Subject: Switched upload chunk status store to the main object stash X-Git-Tag: 1.31.0-rc.0~10695^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=3e7d5096999bf31b8eb6f7db5f51e75b3ba7f739;p=lhc%2Fweb%2Fwiklou.git Switched upload chunk status store to the main object stash Bug: T88493 Change-Id: I91993943ebc39846b78956e71c83358868198c2a --- diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index 426c75247c..493df2e29b 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -1935,7 +1935,7 @@ abstract class UploadBase { public static function getSessionStatus( User $user, $statusKey ) { $key = wfMemcKey( 'uploadstatus', $user->getId() ?: md5( $user->getName() ), $statusKey ); - return wfGetCache( CACHE_ANYTHING )->get( $key ); + return ObjectCache::getMainStashInstance()->get( $key ); } /** @@ -1951,7 +1951,7 @@ abstract class UploadBase { public static function setSessionStatus( User $user, $statusKey, $value ) { $key = wfMemcKey( 'uploadstatus', $user->getId() ?: md5( $user->getName() ), $statusKey ); - $cache = wfGetCache( CACHE_ANYTHING ); + $cache = ObjectCache::getMainStashInstance(); if ( $value === false ) { $cache->delete( $key ); } else {