From 7bb6ebd9b7f02f3ce48163d032070ae6d7278231 Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 10 Nov 2024 15:14:45 +0000 Subject: [PATCH 1/2] On commonswiki set minCpuTime to PHP_INT_MAX fro NS_FILE --- GlobalCache.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/GlobalCache.php b/GlobalCache.php index e6237a0142..44f344fda9 100644 --- a/GlobalCache.php +++ b/GlobalCache.php @@ -116,6 +116,15 @@ 'WarmParsoidParserCache' => $wgDBname !== 'commonswiki' ? true : false, ]; +if ( $wgDBname === 'commonswiki' ) { + $wgParserCacheFilterConfig['parsoid-pcache'] += [ + // disable parsoid-pcache for file description pages on commons + NS_FILE => [ + 'minCpuTime' => PHP_INT_MAX // cache none + ], + ]; +} + $wgLanguageConverterCacheType = CACHE_ACCEL; $wgQueryCacheLimit = 5000; From 43569c203dfb0c44d97cc809a1e4ba96f4d60a7f Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 10 Nov 2024 15:16:17 +0000 Subject: [PATCH 2/2] Update GlobalCache.php --- GlobalCache.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GlobalCache.php b/GlobalCache.php index 44f344fda9..c74dc14d5e 100644 --- a/GlobalCache.php +++ b/GlobalCache.php @@ -120,7 +120,8 @@ $wgParserCacheFilterConfig['parsoid-pcache'] += [ // disable parsoid-pcache for file description pages on commons NS_FILE => [ - 'minCpuTime' => PHP_INT_MAX // cache none + // cache none + 'minCpuTime' => PHP_INT_MAX ], ]; }