Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14034078
D16044.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
964 B
Referenced Files
None
Subscribers
None
D16044.diff
View Options
diff --git a/src/applications/console/controller/DarkConsoleController.php b/src/applications/console/controller/DarkConsoleController.php
--- a/src/applications/console/controller/DarkConsoleController.php
+++ b/src/applications/console/controller/DarkConsoleController.php
@@ -59,6 +59,17 @@
$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();
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 10, 10:01 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718026
Default Alt Text
D16044.diff (964 B)
Attached To
Mode
D16044: After toggling DarkConsole, force a user settings cache fill
Attached
Detach File
Event Timeline
Log In to Comment