* (bug 4368) Don't show useless empty preview on new section creation
* Don't show useless empty preview on new page creation
* (bug 4377) "[" is not valid in URLs
+* Don't delete thumbnails when refreshing exif metadata. This caused thumbs
+ to vanish mysteriously from time to time for files that didn't have metadata.
=== Caveats ===
return $files;
}
+ /**
+ * Refresh metadata in memcached, but don't touch thumbnails or squid
+ */
+ function purgeMetadataCache() {
+ clearstatcache();
+ $this->loadFromFile();
+ $this->saveToCache();
+ }
+
/**
* Delete all previously generated thumbnails, refresh metadata in memcached and purge the squid
*/
global $wgInternalServer, $wgUseSquid;
// Refresh metadata cache
- clearstatcache();
- $this->loadFromFile();
- $this->saveToCache();
+ $this->purgeMetadataCache();
// Delete thumbnails
$files = $this->getThumbnails( $shared );
$newver = Exif::version();
if ( !count( $ret ) || $purge || $oldver != $newver ) {
- $this->purgeCache();
+ $this->purgeMetadataCache();
$this->updateExifData( $newver );
}
if ( isset( $ret['MEDIAWIKI_EXIF_VERSION'] ) )