1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-18 18:51:12 +01:00

Put an in-request cache in front of APC

Summary: Most requests examine the same buckets, especially the first bucket. Let them just read it out of request cache.

Test Plan: Observed most bucket fetches resolving in <10us instead of <10ms.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9080
This commit is contained in:
epriestley 2014-05-12 12:34:04 -07:00
parent c88f5f0759
commit f170991897

View file

@ -32,6 +32,10 @@ final class PhabricatorCaches {
private static function buildRepositoryGraphL1Caches() {
$caches = array();
$request = new PhutilKeyValueCacheInRequest();
$request->setLimit(32);
$caches[] = $request;
$apc = new PhutilKeyValueCacheAPC();
if ($apc->isAvailable()) {
$caches[] = $apc;