@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename `PhutilKeyValueCache` subclasses

Summary: Ref T5655. Depends on D10155.

Test Plan: Ran `arc unit`

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D10156

+7 -7
+5 -5
src/applications/cache/PhabricatorCaches.php
··· 54 54 private static function buildImmutableCaches() { 55 55 $caches = array(); 56 56 57 - $apc = new PhutilKeyValueCacheAPC(); 57 + $apc = new PhutilAPCKeyValueCache(); 58 58 if ($apc->isAvailable()) { 59 59 $caches[] = $apc; 60 60 } ··· 80 80 private static function buildRepositoryGraphL1Caches() { 81 81 $caches = array(); 82 82 83 - $request = new PhutilKeyValueCacheInRequest(); 83 + $request = new PhutilInRequestKeyValueCache(); 84 84 $request->setLimit(32); 85 85 $caches[] = $request; 86 86 87 - $apc = new PhutilKeyValueCacheAPC(); 87 + $apc = new PhutilAPCKeyValueCache(); 88 88 if ($apc->isAvailable()) { 89 89 $caches[] = $apc; 90 90 } ··· 141 141 private static function buildSetupCaches() { 142 142 // In most cases, we should have APC. This is an ideal cache for our 143 143 // purposes -- it's fast and empties on server restart. 144 - $apc = new PhutilKeyValueCacheAPC(); 144 + $apc = new PhutilAPCKeyValueCache(); 145 145 if ($apc->isAvailable()) { 146 146 return array($apc); 147 147 } ··· 150 150 // much better than nothing; some setup steps are quite slow. 151 151 $disk_path = self::getSetupCacheDiskCachePath(); 152 152 if ($disk_path) { 153 - $disk = new PhutilKeyValueCacheOnDisk(); 153 + $disk = new PhutilOnDiskKeyValueCache(); 154 154 $disk->setCacheFile($disk_path); 155 155 $disk->setWait(0.1); 156 156 if ($disk->isAvailable()) {
+2 -2
src/applications/diviner/cache/DivinerDiskCache.php
··· 5 5 private $cache; 6 6 7 7 public function __construct($cache_directory, $name) { 8 - $dir_cache = id(new PhutilKeyValueCacheDirectory()) 8 + $dir_cache = id(new PhutilDirectoryKeyValueCache()) 9 9 ->setCacheDirectory($cache_directory); 10 10 $profiled_cache = id(new PhutilKeyValueCacheProfiler($dir_cache)) 11 11 ->setProfiler(PhutilServiceProfiler::getInstance()) ··· 25 25 /** 26 26 * Convert a long-form hash key like `ccbbaaaaaaaaaaaaaaaaaaaaaaaaaaaaN` into 27 27 * a shortened directory form, like `cc/bb/aaaaaaaaN`. In conjunction with 28 - * @{class:PhutilKeyValueCacheDirectory}, this gives us nice directories 28 + * @{class:PhutilDirectoryKeyValueCache}, this gives us nice directories 29 29 * inside .divinercache instead of a million hash files with huge names at 30 30 * top level. 31 31 */