FU r98109: !EMPTY -> !NONEXISTENT (more consistent with elsewhere)
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 26 Sep 2011 22:46:40 +0000 (22:46 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 26 Sep 2011 22:46:40 +0000 (22:46 +0000)
includes/interwiki/Interwiki.php

index f19919f..fa7e681 100644 (file)
@@ -151,7 +151,7 @@ class Interwiki {
                if ( !$iwData ) {
                        $key = wfMemcKey( 'interwiki', $prefix );
                        $iwData = $wgMemc->get( $key );
-                       if ( $iwData === '!EMPTY' ) {
+                       if ( $iwData === '!NONEXISTENT' ) {
                                return false; // negative cache hit
                        }
                }
@@ -179,7 +179,7 @@ class Interwiki {
                        $wgMemc->add( $key, $mc, $wgInterwikiExpiry );
                        return $iw;
                } else {
-                       $wgMemc->add( $key, '!EMPTY', $wgInterwikiExpiry ); // negative cache hit
+                       $wgMemc->add( $key, '!NONEXISTENT', $wgInterwikiExpiry ); // negative cache hit
                }
 
                return false;