Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 cache problems #19

Closed
jinxiao opened this issue Dec 1, 2020 · 3 comments
Closed

data cache problems #19

jinxiao opened this issue Dec 1, 2020 · 3 comments
Labels
type/feature-request Requested new feature or enhancement

Comments

@jinxiao
Copy link

jinxiao commented Dec 1, 2020

when i use a json api datasource , i found a data cache problem.
i tried to update my json api , but the result on grafana not changed .
when i use curl command , it could show latest result , but grafana cannot.

@marcusolsson
Copy link
Contributor

What have you set the Cache time to? By default it caches the response for 5 minutes. If you want to disable caching, you can set it to 0 seconds.

Screen Shot 2020-12-01 at 07 19 24

@jinxiao
Copy link
Author

jinxiao commented Dec 1, 2020

well , i have already tried it, it not always worked .
let me take an example ,
i change the datasource url, and set the cache time to zero, what showed in query inspector is still the old datasource

@marcusolsson
Copy link
Contributor

Good point. We should probably invalidate the cache if the data source configuration has changed, which I don't believe we do today.

@marcusolsson marcusolsson added the type/feature-request Requested new feature or enhancement label Dec 1, 2020
@marcusolsson marcusolsson added this to To do in Grafana Plugins via automation Dec 7, 2020
@grafana grafana locked and limited conversation to collaborators Mar 7, 2022
@marcusolsson marcusolsson converted this issue into discussion #246 Mar 7, 2022
@marcusolsson marcusolsson removed this from Backlog in Grafana Plugins Sep 30, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
type/feature-request Requested new feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants