diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -2669,6 +2669,7 @@ 'PhabricatorProjectWatchController' => 'applications/project/controller/PhabricatorProjectWatchController.php', 'PhabricatorProjectsPolicyRule' => 'applications/policy/rule/PhabricatorProjectsPolicyRule.php', 'PhabricatorProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorProtocolAdapter.php', + 'PhabricatorPurgeApcController' => 'applications/system/controller/PhabricatorPurgeApcController.php', 'PhabricatorPygmentSetupCheck' => 'applications/config/check/PhabricatorPygmentSetupCheck.php', 'PhabricatorQuery' => 'infrastructure/query/PhabricatorQuery.php', 'PhabricatorQueryConstraint' => 'infrastructure/query/constraint/PhabricatorQueryConstraint.php', @@ -6711,6 +6712,7 @@ 'PhabricatorProjectWatchController' => 'PhabricatorProjectController', 'PhabricatorProjectsPolicyRule' => 'PhabricatorPolicyRule', 'PhabricatorProtocolAdapter' => 'Phobject', + 'PhabricatorPurgeApcController' => 'PhabricatorController', 'PhabricatorPygmentSetupCheck' => 'PhabricatorSetupCheck', 'PhabricatorQuery' => 'Phobject', 'PhabricatorQueryConstraint' => 'Phobject', diff --git a/src/applications/system/application/PhabricatorSystemApplication.php b/src/applications/system/application/PhabricatorSystemApplication.php --- a/src/applications/system/application/PhabricatorSystemApplication.php +++ b/src/applications/system/application/PhabricatorSystemApplication.php @@ -18,6 +18,7 @@ return array( '/status/' => 'PhabricatorStatusController', '/debug/' => 'PhabricatorDebugController', + '/purge_apc/' => 'PhabricatorPurgeApcController', '/robots.txt' => 'PhabricatorRobotsController', '/services/' => array( 'encoding/' => 'PhabricatorSystemSelectEncodingController', diff --git a/src/applications/system/controller/PhabricatorPurgeApcController.php b/src/applications/system/controller/PhabricatorPurgeApcController.php new file mode 100644 --- /dev/null +++ b/src/applications/system/controller/PhabricatorPurgeApcController.php @@ -0,0 +1,34 @@ +setContent($result); + return $response; + } +}