From 6d6f47c46133a5554c242f4025d1a181931eda6a Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Fri, 8 May 2026 13:09:58 +0100 Subject: [PATCH] mediawiki: Increase InstantCommons cache expiry based on recommendations --- .../templates/default/mw-ext-QuickInstantCommons.inc.php.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb index 876153b5f..cbd645a52 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-QuickInstantCommons.inc.php.erb @@ -11,9 +11,10 @@ $wgForeignFileRepos[] = [ 'thumbUrl' => 'https://upload.wikimedia.org/wikipedia/commons/thumb', 'fetchDescription' => true, 'descriptionCacheExpiry' => 60*60*24*30, + 'apiMetadataExpiry' => 60*60*24*30, + 'thumbCacheExpiry' => 60*60*24*30, 'transformVia404' => false, 'abbrvThreshold' => 160, - 'apiMetadataExpiry' => 60*60*24*30, 'disabledMediaHandlers' => [TiffHandler::class] ]; $wgQuickInstantCommonsUserAgentInfo = "https://osm.wiki/"; -- 2.39.5