mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
Increase AbuseFilterTokenizer cache TTL from 10m to 1d
AbuseFilterTokenizer is referentially transparent -- the mapping of input to outputs does not vary on nonlocal state. So the cache TTL can be much longer. Change-Id: I9e6ec4347dbb940c3d73538d550a0f045706264c
This commit is contained in:
parent
55fe95e066
commit
907de9a26c
|
@ -92,7 +92,7 @@ class AbuseFilterTokenizer {
|
|||
$tokens[ $token->pos ] = array( $token, $curPos );
|
||||
} while ( $curPos !== $prevPos );
|
||||
|
||||
$tokenizerCache->set( $cacheKey, $tokens, 600 );
|
||||
$tokenizerCache->set( $cacheKey, $tokens, 60 * 60 * 24 );
|
||||
|
||||
return $tokens;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue