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

Added caching on /api/schema/ endpoint #15897

Conversation

mulmat
Copy link
Contributor

@mulmat mulmat commented Apr 30, 2024

Fixes: #15894

Re-added caching on api schema generation endpoint, similar to what was implemented before in 257c0af. Also added netbox version in cache-key in order to bust cache immediately when upgrading netbox.

@mulmat mulmat changed the title Added caching on /api/schema/ endpoint (closes #15894) Added caching on /api/schema/ endpoint Apr 30, 2024
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Confirmed response time drops from ~4 seconds for initial schema request to ~100ms for successive requests locally. Thanks @mulmat!

@jeremystretch jeremystretch merged commit d256c04 into netbox-community:develop May 1, 2024
4 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cache /api/schema/ endpoint
2 participants