Skip to content

Fix: change frontend cache time#1889

Open
MarceloRobert wants to merge 1 commit intokernelci:mainfrom
MarceloRobert:fix/frontend-cache-time
Open

Fix: change frontend cache time#1889
MarceloRobert wants to merge 1 commit intokernelci:mainfrom
MarceloRobert:fix/frontend-cache-time

Conversation

@MarceloRobert
Copy link
Copy Markdown
Collaborator

The frontend query cache can stale some requests, which in turn can show outdated numbers between treeListing, treeDetails and treeCommitHistory. Lowering the cache time will technically increase the number of requests, but this can be done without much concern since we have improved endpoint performance. Besides, without this risk for outdated numbers there is less chance for confusion in users when they see trees that are receiving data in real time.

Changes

  • Changed frontend request cache from 5 minutes to 30 seconds

Also removes eslint rule ignore

How to test

Go to any frontend page, check that if you make the same request within 30s it will get the data from cache (it won't perform the request again) and after 30s it will redo the request.

Also removes eslint rule ignore
@MarceloRobert MarceloRobert self-assigned this May 5, 2026
@MarceloRobert MarceloRobert added the Frontend Most or all of the changes for this issue will be in the frontend code. label May 5, 2026
Copy link
Copy Markdown
Contributor

@alanpeixinho alanpeixinho left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Most or all of the changes for this issue will be in the frontend code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants