Differential D14064 Diff 34068 src/applications/config/controller/PhabricatorConfigCacheController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/controller/PhabricatorConfigCacheController.php
| Show All 33 Lines | final class PhabricatorConfigCacheController | ||||
| private function renderCodeBox() { | private function renderCodeBox() { | ||||
| $cache = PhabricatorOpcodeCacheSpec::getActiveCacheSpec(); | $cache = PhabricatorOpcodeCacheSpec::getActiveCacheSpec(); | ||||
| $properties = id(new PHUIPropertyListView()); | $properties = id(new PHUIPropertyListView()); | ||||
| $this->renderCommonProperties($properties, $cache); | $this->renderCommonProperties($properties, $cache); | ||||
| $purge_icon = id(new PHUIIconView()) | |||||
| ->setIconFont('fa-exclamation-triangle'); | |||||
| $purge_button = id(new PHUIButtonView()) | |||||
| ->setText(pht('Purge Caches')) | |||||
| ->setHref('/config/cache/purge/') | |||||
| ->setTag('a') | |||||
| ->setWorkflow(true) | |||||
| ->setIcon($purge_icon); | |||||
| $header = id(new PHUIHeaderView()) | |||||
| ->setHeader(pht('Opcode Cache')) | |||||
| ->addActionLink($purge_button); | |||||
| return id(new PHUIObjectBoxView()) | return id(new PHUIObjectBoxView()) | ||||
| ->setHeaderText(pht('Opcode Cache')) | ->setHeader($header) | ||||
| ->addPropertyList($properties); | ->addPropertyList($properties); | ||||
| } | } | ||||
| private function renderDataBox() { | private function renderDataBox() { | ||||
| $cache = PhabricatorDataCacheSpec::getActiveCacheSpec(); | $cache = PhabricatorDataCacheSpec::getActiveCacheSpec(); | ||||
| $properties = id(new PHUIPropertyListView()); | $properties = id(new PHUIPropertyListView()); | ||||
| ▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines | |||||