Follow-up r84395: Give MediaHandlers the option to remove items from the thumbnail...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 2 Oct 2011 20:08:05 +0000 (20:08 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 2 Oct 2011 20:08:05 +0000 (20:08 +0000)
commit6b75e88a79d502c182f3a1a822365df10cd4e5c6
tree1d8e33f4bbde3d3aa360934dacc33645d491db71
parentc0e718d43f62e645f8b301256d461eeadb7472d4
Follow-up r84395: Give MediaHandlers the option to remove items from the thumbnail purge list. Is needed for TMH because thumbnail rendering may be very expensive for media files. Haven't thought yet of a way to integrate this with the UI, but the current framework should be flexible enough to implement that later.

Added array $options to File::purgeCache(), LocalFile::purgeCache(), LocalFile::purgeThumbnails(), ForeignAPIFile::purgeCache() and ForeignAPIFile::purgeThumbnails() which is currently empty, but can be used later to indicate a full or partial purge.
Added MediaHandler::filterThumbnailPurgeList(), which can remove items from the purge list and also gets passed this $options array
includes/filerepo/File.php
includes/filerepo/ForeignAPIFile.php
includes/filerepo/LocalFile.php
includes/media/Generic.php