Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401922
D19526.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
846 B
Referenced Files
None
Subscribers
None
D19526.id.diff
View Options
diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php
--- a/src/infrastructure/env/PhabricatorEnv.php
+++ b/src/infrastructure/env/PhabricatorEnv.php
@@ -221,6 +221,10 @@
foreach ($site_sources as $site_source) {
$stack->pushSource($site_source);
+
+ // If the site source did anything which reads config, throw it away
+ // to make sure any additional site sources get clean reads.
+ self::dropConfigCache();
}
$masters = PhabricatorDatabaseRef::getMasterDatabaseRefs();
@@ -259,6 +263,10 @@
throw $ex;
}
}
+
+ // Drop the config cache one final time to make sure we're getting clean
+ // reads now that we've finished building the stack.
+ self::dropConfigCache();
}
public static function repairConfig($key, $value) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 7:47 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7382514
Default Alt Text
D19526.id.diff (846 B)
Attached To
Mode
D19526: When building a config stack, stop SiteSource objects from poisoning the cache
Attached
Detach File
Event Timeline
Log In to Comment