-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Charts data does not update based on cache timeout, refreshing the charts doesn't work #17240
Comments
Hello! Did you find any solution for this? |
No, unfortunately it still ignores all the cache settings and dashboards get updated every 24 hours. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
This issue sounds disconcerting, but is also a bit of an antique. Is anyone still encountering this in current era versions of Superset, or is it safe to close out? |
Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please re-open this issue, open a new Issue with updated context, or raise a PR to address the problem. Thanks! |
I have set up superset using mysql and redis on ubuntu server. I have set these config in my config file:
SQLALCHEMY_DATABASE_URI = '[my mysql connection]'
DATA_DIR = os.path.join(os.path.dirname(file), 'data_dir')
CACHE_DEFAULT_TIMEOUT = 600
CACHE_CONFIG = {
'CACHE_TYPE': 'redis',
'CACHE_DEFAULT_TIMEOUT': 600,
'CACHE_KEY_PREFIX': 'superset_',
'CACHE_REDIS_HOST': 'localhost',
'CACHE_REDIS_PORT': 6379,
'CACHE_REDIS_DB': 1,
'CACHE_REDIS_URL': 'redis://localhost:6379/1'
}
I expect the cache to be 10 minutes for my charts, so the dashboard will be updated with new data from my database every 10 minutes. However it updates them every 24 hours and does not use the cache timeout. It neither updates the charts when I use "force refresh' on a chart. However, when I use the 'explore chart' and re-save it, it gets the new data from the database.
How to reproduce the bug
1.set up the superset with these config.
2- create a chart.
3- add some new records to the data source.
4- go to the dashboard after the the time of cache timeout
5- refresh the page
Expected results
The charts are updated with new data added to the datasource
Actual results
The charts are not updated. They will be updated tomorrow.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: