Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/PhabricatorCaches.php
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | if ($apc->isAvailable()) { | ||||
| $caches[] = $apc; | $caches[] = $apc; | ||||
| } | } | ||||
| $caches[] = new PhabricatorKeyValueDatabaseCache(); | $caches[] = new PhabricatorKeyValueDatabaseCache(); | ||||
| return $caches; | return $caches; | ||||
| } | } | ||||
| public static function getMutableCache() { | |||||
| static $cache; | |||||
| if (!$cache) { | |||||
| $caches = self::buildMutableCaches(); | |||||
| $cache = self::newStackFromCaches($caches); | |||||
| } | |||||
| return $cache; | |||||
| } | |||||
| private static function buildMutableCaches() { | |||||
| $caches = array(); | |||||
| $caches[] = new PhabricatorKeyValueDatabaseCache(); | |||||
| return $caches; | |||||
| } | |||||
| /* -( Repository Graph Cache )--------------------------------------------- */ | /* -( Repository Graph Cache )--------------------------------------------- */ | ||||
| public static function getRepositoryGraphL1Cache() { | public static function getRepositoryGraphL1Cache() { | ||||
| static $cache; | static $cache; | ||||
| if (!$cache) { | if (!$cache) { | ||||
| $caches = self::buildRepositoryGraphL1Caches(); | $caches = self::buildRepositoryGraphL1Caches(); | ||||
| ▲ Show 20 Lines • Show All 285 Lines • Show Last 20 Lines | |||||