Skip to content

Commit

Permalink
GlobalCache: remove unused code + simplify expressions (#5367)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Voidwalker authored Nov 6, 2023
1 parent d677be6 commit 9865f2f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions GlobalCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,14 @@

$wgParserCacheType = 'mysql-multiwrite';

$disableWarmupArray = [
'allthetropeswiki',
'altversewiki',
'bluepageswiki',
'newusopediawiki',
'xedwiki',
];
// $disableWarmup = in_array( $wgDBname, $disableWarmupArray );
$enableWarmup = ( $beta || preg_match( '/^([0-9]|a|b|c|d|e|f|g|h|i|j|k|l|n|m|o|p|q|r)/', $wgDBname ) );
$enableWarmup = ( $beta || preg_match( '/^[0-9a-r]/', $wgDBname ) );
$wgParsoidCacheConfig = [
// Defaults to MainStash
'StashType' => null,
// 24h in production, VE will fail to save after this time.
'StashDuration' => 24 * 60 * 60,
'CacheThresholdTime' => 0.0,
'WarmParsoidParserCache' => $enableWarmup ? true : false,
'WarmParsoidParserCache' => $enableWarmup,
];

$wgLanguageConverterCacheType = CACHE_ACCEL;
Expand Down

0 comments on commit 9865f2f

Please sign in to comment.