Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15274636
D15988.id38484.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
D15988.id38484.diff
View Options
diff --git a/src/applications/differential/parser/DifferentialChangesetParser.php b/src/applications/differential/parser/DifferentialChangesetParser.php
--- a/src/applications/differential/parser/DifferentialChangesetParser.php
+++ b/src/applications/differential/parser/DifferentialChangesetParser.php
@@ -458,6 +458,10 @@
}
public function saveCache() {
+ if (PhabricatorEnv::isReadOnly()) {
+ return false;
+ }
+
if ($this->highlightErrors) {
return false;
}
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
@@ -968,6 +968,10 @@
* @task availability
*/
public function writeAvailabilityCache(array $availability, $ttl) {
+ if (PhabricatorEnv::isReadOnly()) {
+ return $this;
+ }
+
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
queryfx(
$this->establishConnection('w'),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 2, 10:30 AM (20 h, 29 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7216637
Default Alt Text
D15988.id38484.diff (1 KB)
Attached To
Mode
D15988: Stop two special cache writes in read-only mode
Attached
Detach File
Event Timeline
Log In to Comment