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:
parent
c88f5f0759
commit
f170991897
1 changed files with 4 additions and 0 deletions
4
src/applications/cache/PhabricatorCaches.php
vendored
4
src/applications/cache/PhabricatorCaches.php
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue