Lower pcTTL in checkRedirect() to 30
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 25 Mar 2016 19:35:42 +0000 (12:35 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 26 Mar 2016 10:43:21 +0000 (10:43 +0000)
The process cache does not see other purges, so lower this
for sanity in case of long-running scripts.

Change-Id: I545ce6b160bb10ffe1877284a397a247c960d885

includes/filerepo/LocalRepo.php

index d038d93..8248699 100644 (file)
@@ -227,7 +227,7 @@ class LocalRepo extends FileRepo {
                                        ? Title::makeTitle( $row->rd_namespace, $row->rd_title )->getDBkey()
                                        : ''; // negative cache
                        },
-                       [ 'pcTTL' => $expiry ]
+                       [ 'pcTTL' => 30 ]
                );
 
                // @note: also checks " " for b/c