dataLoaded also needs to be set for negative cache hits.
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 19 Nov 2007 10:22:29 +0000 (10:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 19 Nov 2007 10:22:29 +0000 (10:22 +0000)
includes/filerepo/LocalFile.php

index ae1672b..06f7b0d 100644 (file)
@@ -112,6 +112,7 @@ class LocalFile extends File
                        if ( $this->fileExists ) {
                                $this->setProps( $cachedValues );
                        }
+                       $this->dataLoaded = true;
                }
                if ( $this->dataLoaded ) {
                        wfIncrStats( 'image_cache_hit' );