(bug 18571) Purging image should always clear metadata cache. Sometimes the metadata...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 24 Apr 2009 23:11:07 +0000 (23:11 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 24 Apr 2009 23:11:07 +0000 (23:11 +0000)
CREDITS
RELEASE-NOTES
includes/ImagePage.php

diff --git a/CREDITS b/CREDITS
index f43ecca..fb64629 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -83,6 +83,7 @@ following names for their contribution to the product.
 * Mormegil
 * Nakon
 * Nathan Larson
+* nephele
 * Nikolaos S. Karastathis
 * Olaf Lenz
 * Paul Copperman
index 16e1410..e6f6102 100644 (file)
@@ -360,12 +360,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   revisions when --delete is not passed
 * (bug 13172) GPS coordinates in image Exif data are now actually displayed
 * Overhaul of preferences system, includes the following bug fixes:
- * (bug 5363) Changes to default preferences now impact registered users.
- * (bug 14806) Hook to enable putting preferences in existing tabs.
- * (bug 17191) Registration date now listed on preferences page.
- * Note that this change will break some extensions which have not been adapted
-   for it.
-* (bug 17020) Adding fallback encodings for Traditional and Simplified Chinese languages while the the text is typed as URLs.
+* (bug 5363) Changes to default preferences now impact registered users.
+* (bug 14806) Hook to enable putting preferences in existing tabs.
+* (bug 17191) Registration date now listed on preferences page.
+* Note that this change will break some extensions which have not been adapted
+  for it.
+* (bug 17020) Adding fallback encodings for Traditional and Simplified Chinese 
+  languages while the the text is typed as URLs.
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
index 800c418..d1e4649 100644 (file)
@@ -697,7 +697,10 @@ EOT
                        $this->img->upgradeRow();
                        $this->img->purgeCache();
                } else {
-                       wfDebug( "ImagePage::doPurge no image\n" );
+                       wfDebug( "ImagePage::doPurge no image for " . $this->img->getName() . "; limiting purge to cache only\n" );
+                       // even if the file supposedly doesn't exist, force any cached information
+                       // to be updated (in case the cached information is wrong)
+                       $this->img->purgeCache();
                }
                parent::doPurge();
        }