Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14040331
D16937.id40768.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
813 B
Referenced Files
None
Subscribers
None
D16937.id40768.diff
View Options
diff --git a/src/applications/people/query/PhabricatorPeopleQuery.php b/src/applications/people/query/PhabricatorPeopleQuery.php
--- a/src/applications/people/query/PhabricatorPeopleQuery.php
+++ b/src/applications/people/query/PhabricatorPeopleQuery.php
@@ -498,7 +498,16 @@
'eventPHID' => null,
'availability' => null,
);
+
+ // Cache that the user is available until the next event they are
+ // invited to starts.
$availability_ttl = $max_range;
+ foreach ($events as $event) {
+ $from = $event->getStartDateTimeEpochForCache();
+ if ($from > $cursor) {
+ $availability_ttl = min($from, $availability_ttl);
+ }
+ }
}
// Never TTL the cache to longer than the maximum range we examined.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 12, 9:16 AM (6 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6715542
Default Alt Text
D16937.id40768.diff (813 B)
Attached To
Mode
D16937: Fix an issue where an excessively long TTL was computed for "not attending anything" event caches
Attached
Detach File
Event Timeline
Log In to Comment