Skip to content

Commit 8af3d20

Browse files
paladoxgithub-actions
and
github-actions
authored
Enable warmup for wikis with 0-9 or starting with a and also beta (#5360)
Co-authored-by: github-actions <[email protected]>
1 parent 8cdc606 commit 8af3d20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GlobalCache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@
109109
'xedwiki',
110110
];
111111
// $disableWarmup = in_array( $wgDBname, $disableWarmupArray );
112-
$disableWarmup = true;
112+
$enableWarmup = ( $beta || preg_match( '/^([0-9]|a)/', $wgDBname ) );
113113
$wgParsoidCacheConfig = [
114114
// Defaults to MainStash
115115
'StashType' => null,
116116
// 24h in production, VE will fail to save after this time.
117117
'StashDuration' => 24 * 60 * 60,
118118
'CacheThresholdTime' => 0.0,
119-
'WarmParsoidParserCache' => $disableWarmup ? false : true,
119+
'WarmParsoidParserCache' => $enableWarmup ? true : false,
120120
];
121121

122122
$wgLanguageConverterCacheType = CACHE_ACCEL;

0 commit comments

Comments
 (0)