Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15407613
D17024.id40951.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
D17024.id40951.diff
View Options
diff --git a/src/applications/config/check/PhabricatorSetupCheck.php b/src/applications/config/check/PhabricatorSetupCheck.php
--- a/src/applications/config/check/PhabricatorSetupCheck.php
+++ b/src/applications/config/check/PhabricatorSetupCheck.php
@@ -82,12 +82,12 @@
AphrontWriteGuard::allowDangerousUnguardedWrites(true);
}
- $caught = null;
try {
$db_cache = new PhabricatorKeyValueDatabaseCache();
$db_cache->deleteKey('phabricator.setup.issue-keys');
} catch (Exception $ex) {
- $caught = $ex;
+ // If we hit an exception here, just ignore it. In particular, this can
+ // happen on initial startup before the databases are initialized.
}
if ($use_scope) {
@@ -95,10 +95,6 @@
} else {
AphrontWriteGuard::allowDangerousUnguardedWrites(false);
}
-
- if ($caught) {
- throw $caught;
- }
}
final public static function setOpenSetupIssueKeys(
diff --git a/src/applications/settings/editor/PhabricatorUserPreferencesEditor.php b/src/applications/settings/editor/PhabricatorUserPreferencesEditor.php
--- a/src/applications/settings/editor/PhabricatorUserPreferencesEditor.php
+++ b/src/applications/settings/editor/PhabricatorUserPreferencesEditor.php
@@ -159,7 +159,7 @@
$user_phid);
} else {
$cache = PhabricatorCaches::getMutableStructureCache();
- $cache->deleteKey(PhabricatorUserPreferences::getGlobalCacheKey());
+ $cache->deleteKey(PhabricatorUser::getGlobalSettingsCacheKey());
PhabricatorUserCache::clearCacheForAllUsers(
PhabricatorUserPreferencesCacheType::KEY_PREFERENCES);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 6:41 PM (4 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707411
Default Alt Text
D17024.id40951.diff (1 KB)
Attached To
Mode
D17024: Fix two cache issues (global settings; initial setup)
Attached
Detach File
Event Timeline
Log In to Comment