filerepo: make ForeignApiRepo::httpGetCached() use "pcGroup"
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 16 Jul 2019 04:06:42 +0000 (21:06 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 21 Jul 2019 14:59:36 +0000 (14:59 +0000)
Given the item size, it is best to keep the cache limit small

Change-Id: Icf57a5e54046d4909535f772f1556452ccb122df

includes/filerepo/ForeignAPIRepo.php

index 8ff8143..314c4c3 100644 (file)
@@ -580,7 +580,7 @@ class ForeignAPIRepo extends FileRepo {
 
                                return $html;
                        },
-                       [ 'pcTTL' => WANObjectCache::TTL_PROC_LONG ]
+                       [ 'pcGroup' => 'http-get:3', 'pcTTL' => WANObjectCache::TTL_PROC_LONG ]
                );
        }