From cc58c1deb21142c65754bffac03c5fe61c9eb2cf Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 14 May 2005 09:54:26 +0000 Subject: [PATCH] Ignore cache keys from previous version --- includes/Image.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Image.php b/includes/Image.php index 0e0c174c40..a22ae0a0b1 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -110,7 +110,9 @@ class Image $cachedValues = $wgMemc->get( $keys[0] ); // Check if the key existed and belongs to this version of MediaWiki - if (!empty($cachedValues) && is_array($cachedValues) && isset($cachedValues['width']) && $cachedValues['fileExists']) { + if (!empty($cachedValues) && is_array($cachedValues) && isset($cachedValues['width']) + && $cachedValues['fileExists'] && isset( $cachedValues['metadata'] ) ) + { if ( $wgUseSharedUploads && $cachedValues['fromShared']) { # if this is shared file, we need to check if image # in shared repository has not changed -- 2.20.1