From b387c52fda63935f286e8a2d31d95fc0b3521cdc Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 19 Nov 2007 10:22:29 +0000 Subject: [PATCH] dataLoaded also needs to be set for negative cache hits. --- includes/filerepo/LocalFile.php | 1 + 1 file changed, 1 insertion(+) 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' ); -- 2.20.1