From 3e7d5096999bf31b8eb6f7db5f51e75b3ba7f739 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 30 Jun 2015 11:04:33 -0700 Subject: [PATCH] Switched upload chunk status store to the main object stash Bug: T88493 Change-Id: I91993943ebc39846b78956e71c83358868198c2a --- includes/upload/UploadBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.20.1