diff --git a/src/applications/console/controller/DarkConsoleController.php b/src/applications/console/controller/DarkConsoleController.php index 026083cb59..3a677920ee 100644 --- a/src/applications/console/controller/DarkConsoleController.php +++ b/src/applications/console/controller/DarkConsoleController.php @@ -59,6 +59,17 @@ final class DarkConsoleController extends PhabricatorController { $xactions = array(); $xactions[] = $preferences->newTransaction($key, $value); $editor->applyTransactions($preferences, $xactions); + + // Reload the user to regenerate their preferences cache. If we don't + // do this, the "Services" tab gets misleadingly spammed up with cache + // fills that are only filling because you toggled the console or switched + // tabs. This makes it harder to see what's really going on, so just force + // a cache regeneration here. + id(new PhabricatorPeopleQuery()) + ->setViewer($viewer) + ->withPHIDs(array($viewer->getPHID())) + ->needUserSettings(true) + ->execute(); } }