InstantCommons: do not cache thumbs
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 25 Jan 2017 20:03:33 +0000 (12:03 -0800)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 25 Jan 2017 20:04:39 +0000 (12:04 -0800)
There is no point in local thumb caching when we set apibase
and thumbUrl to the remote wiki. It will only confuse MediaWiki
into creating local thumbnails for certain LinksUpdate tasks
even though the rendered page will reference thumbnails hosted
on Commons.

Bug: T145496
Change-Id: I0bd4b539f575036dd865bdd946660f10a9ee8801

includes/Setup.php

index 9f722af..c452779 100644 (file)
@@ -242,7 +242,7 @@ if ( $wgUseInstantCommons ) {
                'transformVia404' => true,
                'fetchDescription' => true,
                'descriptionCacheExpiry' => 43200,
-               'apiThumbCacheExpiry' => 86400,
+               'apiThumbCacheExpiry' => 0,
        ];
 }
 /*