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:
Ori Livneh 2015-10-24 10:27:14 -07:00
parent 55fe95e066
commit 907de9a26c

View file

@ -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;
}