-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache getSharedWith() result #972
Conversation
8450e17
to
55b21aa
Compare
55b21aa
to
bbc52d3
Compare
Codecov Report
@@ Coverage Diff @@
## master #972 +/- ##
===========================================
- Coverage 0.69% 0.69% -0.01%
- Complexity 5708 5716 +8
===========================================
Files 289 289
Lines 19740 19763 +23
===========================================
Hits 138 138
- Misses 19602 19625 +23
Continue to review full report at Codecov.
|
bbc52d3
to
46b0f4f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Signed-off-by: Maxence Lange <maxence@artificial-owl.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
50e0018
to
15d81a6
Compare
squashed |
Caching the shares also caches the file metadata of the root of the share. Breaking sync as the old etag will be reported after a change for the duration of the cache ttl. |
The idea is to cache the result from getSharedWith() which can be requested multiple times (at least 4) when loading a new page on Files App.
Each cache is identified by a key based on:
0
Probe
object.The cache related to the singleId of the membership is reset when membership is updated.
All the cache is clear when creating/editing/deleting a share. (It might be interesting to filter the memberships affected by the share)