From: Tim Starling Date: Mon, 19 Nov 2007 10:22:29 +0000 (+0000) Subject: dataLoaded also needs to be set for negative cache hits. X-Git-Tag: 1.31.0-rc.0~50809 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=b387c52fda63935f286e8a2d31d95fc0b3521cdc;p=lhc%2Fweb%2Fwiklou.git dataLoaded also needs to be set for negative cache hits. --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index ae1672bc5b..06f7b0d264 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -112,6 +112,7 @@ class LocalFile extends File if ( $this->fileExists ) { $this->setProps( $cachedValues ); } + $this->dataLoaded = true; } if ( $this->dataLoaded ) { wfIncrStats( 'image_cache_hit' );