Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14058441
D16936.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16936.diff
View Options
diff --git a/src/applications/people/storage/PhabricatorUser.php b/src/applications/people/storage/PhabricatorUser.php
--- a/src/applications/people/storage/PhabricatorUser.php
+++ b/src/applications/people/storage/PhabricatorUser.php
@@ -487,7 +487,7 @@
if ($this->getPHID()) {
$settings = $this->requireCacheData($settings_key);
} else {
- $settings = array();
+ $settings = $this->loadGlobalSettings();
}
// NOTE: To slightly improve performance, we're using all settings here,
@@ -555,6 +555,20 @@
return $this->getUserSetting(PhabricatorTimezoneSetting::SETTINGKEY);
}
+ private function loadGlobalSettings() {
+ $cache_key = 'user.settings.global';
+ $cache = PhabricatorCaches::getRequestCache();
+ $settings = $cache->getKey($cache_key);
+
+ if ($settings === null) {
+ $preferences = PhabricatorUserPreferences::loadGlobalPreferences($this);
+ $settings = $preferences->getPreferences();
+ $cache->setKey($cache_key, $settings);
+ }
+
+ return $settings;
+ }
+
/**
* Override the user's timezone identifier.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 12:10 PM (14 h, 16 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6745334
Default Alt Text
D16936.diff (1 KB)
Attached To
Mode
D16936: Make logged-out users use global settings, not default settings
Attached
Detach File
Event Timeline
Log In to Comment