Skip to content

Conversation

@alexcambose
Copy link
Contributor

@alexcambose alexcambose commented Aug 19, 2025

Summary

This functions seems to have tons of params with date ranges and it's really using up a lot of redis resources. I also don't think it adds much benefit to redis cache this so removing it for now.
Screenshot 2025-08-19 at 13 29 05

Rationale

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@alexcambose alexcambose requested a review from a team as a code owner August 19, 2025 11:28
@vercel
Copy link

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
component-library Ready Ready Preview Comment Aug 19, 2025 11:28am
insights Ready Ready Preview Comment Aug 19, 2025 11:28am
5 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
api-reference Skipped Skipped Aug 19, 2025 11:28am
developer-hub Skipped Skipped Aug 19, 2025 11:28am
entropy-explorer Skipped Skipped Aug 19, 2025 11:28am
proposals Skipped Skipped Aug 19, 2025 11:28am
staking Skipped Skipped Aug 19, 2025 11:28am

@alexcambose alexcambose changed the title fix: uncache feedScoreHistory fix: uncache getFeedScoreHistory Aug 19, 2025
@alexcambose alexcambose requested review from cprussin and fhqvst August 19, 2025 11:31
@alexcambose alexcambose enabled auto-merge August 19, 2025 11:34
@alexcambose alexcambose removed the request for review from a team August 19, 2025 11:36
Copy link
Contributor

@fhqvst fhqvst left a comment

Choose a reason for hiding this comment

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

Looks good! Might be worth adding a comment describing why this specific function is not cached when most (all?) other functions in here are cached

@alexcambose alexcambose merged commit c22f227 into main Aug 19, 2025
10 checks passed
@alexcambose alexcambose deleted the fix/uncache-method branch August 19, 2025 11:38
@alexcambose
Copy link
Contributor Author

Fair point, will add that later

@cprussin
Copy link
Collaborator

This makes sense, I think this will also get even more significant when we add the error visualization & component feeds in the chart. Reasonable to not bother with caching.

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.

4 participants