Skip to content
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

Add getIdServer() & doesServerRequireIdServerParam() #1018

Merged
merged 2 commits into from
Aug 19, 2019
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Aug 16, 2019

Remove individual cache for lazy loading and just cache the whole
versions response, then we can cache both of these flags

Remove individual cache for lazy loading and just cache the whole
versions response, then we can cache both of these flags
@dbkr dbkr requested a review from a team August 16, 2019 14:07
dbkr added a commit to matrix-org/matrix-react-sdk that referenced this pull request Aug 16, 2019
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good to me though. Expiration of the versions can probably be a maintenance task rather than being in this PR - please open an issue on riot-web if you go this route.

@@ -4059,15 +4060,38 @@ MatrixClient.prototype.doesServerSupportLazyLoading = async function() {
prefix: '',
},
);
}
return this._serverVersionsCache;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should expire this after ~8 hours, similar to how capabilities are dealt with. Concern would be someone who runs Riot for days on end (me) and upgrades their server in the background.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: #1020

@dbkr dbkr merged commit 898fa0e into develop Aug 19, 2019
manuroe added a commit to matrix-org/matrix-ios-sdk that referenced this pull request Aug 29, 2019
@t3chguy t3chguy deleted the dbkr/getversions branch May 10, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants