Page MenuHomePhabricator

D16937.diff
No OneTemporary

D16937.diff

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

Mime Type
text/plain
Expires
May 16 2024, 1:26 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6289714
Default Alt Text
D16937.diff (813 B)

Event Timeline