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

Data Not Updating – Only First Request Returns Correct Results #4056

Open
WkndNite opened this issue Dec 8, 2024 · 0 comments
Open

Data Not Updating – Only First Request Returns Correct Results #4056

WkndNite opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working.

Comments

@WkndNite
Copy link

WkndNite commented Dec 8, 2024

Describe the bug

I have an issue where only the first request returns the correct data, while subsequent requests are cached and show outdated results.

Deployment: The project is deployed on Vercel.
Environment Variable: I've set CACHE_SECONDS=0 in the Vercel environment variables.
Markdown Links: I've added the cache_seconds parameter in the request URLs, like ?cache_seconds=0.

However, the data still does not update in real-time. How can I ensure that caching is fully disabled or that data updates correctly on each request?

Expected behavior

I expect the data to be updated in real-time with each request. Specifically, after setting CACHE_SECONDS=0 in the environment variables and adding the cache_seconds parameter in the Markdown links, I should receive the latest data on every request, without any caching. Each request should reflect the most recent changes, without relying on cached data.

Screenshots / Live demo link

No response

Additional context

No response

@WkndNite WkndNite added the bug Something isn't working. label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant