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

Cache requests on teacher dashboard #22147

Merged
merged 3 commits into from May 2, 2018
Merged

Conversation

balderdash
Copy link
Contributor

@balderdash balderdash commented May 2, 2018

Turn angular service caching on for the sections service, see: https://docs.angularjs.org/api/ng/service/$http#caching

@caleybrock
Copy link
Contributor

Context:
We currently make multiple unnecessary calls to /v2/sections that are causing performance problems, so this ensures we only make the call once per page load.

Copy link
Contributor

@caleybrock caleybrock left a comment

Choose a reason for hiding this comment

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

Great find.

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

:shipit: Hooray!

@balderdash balderdash merged commit ef3e75e into staging May 2, 2018
islemaster added a commit that referenced this pull request May 2, 2018
Yesterday @balderdash discovered and deployed [this awesome fix](#22147) that makes angular cache the results of API calls in teacher dashboard, significantly reducing redundant calls.

We deployed this setting with a DCDO flag so we could quickly enable/disable it in case it caused unexpected problems.  After deploying it today, it's had a clear positive impact and we haven't had reports of serious issues with the caching behavior yet.  This change removes the DCDO flag (because simpler configuration is better) and leaves the caching change in place.
@balderdash balderdash deleted the cache-teacherdashboard branch May 3, 2018 00:57
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.

None yet

3 participants