Page MenuHomePhabricator

D19526.id.diff
No OneTemporary

D19526.id.diff

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

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)

Event Timeline