1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-12 16:46:15 +01:00
phorge-phorge/src/applications/config/check/PhabricatorCacheSetupCheck.php

21 lines
470 B
PHP
Raw Normal View History

<?php
final class PhabricatorCacheSetupCheck extends PhabricatorSetupCheck {
public function getDefaultGroup() {
return self::GROUP_PHP;
}
protected function executeChecks() {
$code_cache = PhabricatorOpcodeCacheSpec::getActiveCacheSpec();
$data_cache = PhabricatorDataCacheSpec::getActiveCacheSpec();
$issues = $code_cache->getIssues() + $data_cache->getIssues();
foreach ($issues as $issue) {
$this->addIssue($issue);
}
}
}