From 907de9a26c203fefe9cf7f03d53a7b39b7a98a8c Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Sat, 24 Oct 2015 10:27:14 -0700 Subject: [PATCH] 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 --- AbuseFilterTokenizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AbuseFilterTokenizer.php b/AbuseFilterTokenizer.php index 3001d434d..737f16113 100644 --- a/AbuseFilterTokenizer.php +++ b/AbuseFilterTokenizer.php @@ -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; }