You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chart cache timeout is ignored, I only tested with dataset cache timeout set but looking at the code I think it will be ignored irrespetive of dataset cache timeout config.
How to reproduce the bug
start redis locally, and setup redis cache in config for data
create any chart on 1 dataset
set dataset cache timeout to 120 seconds
set chart cache timeout to 5 seconds (from properties modal).
open chart, and click on update chart
use redis cli, to check the expiry set on the cache key using ttl {cache_key} -> it will be 120 seconds.
after a minute backend still gives cached data, and we see cached a minute ago tag on top right corner.
Expected results
Chart cache timout should override dataset timeout setting, and return actual data from database after 5 seconds.
Actual results
Chart cache timout setting is ignored, and dataset cache timeout is used for checking existing cached data..
Screenshots
If applicable, add screenshots to help explain your problem.
@mayurnewase Oh interesting. Apparently buildQuery isn't passing along the custom cache timouts from form data to the chart data request. I believe this needs to be fixed in @superset-ui/core. I can take a look, hoping it will be a simple fix.
ouch, so custom_cache_timeout was supposed to be used even by the frontend?
I thougth it was for overriding all other timeouts while using that api in other automations.
I already added 1 pr: #21637
will close it. @villebro
mayurnewase
changed the title
Chart cache timeout is ignored when dataset cache is set
Chart cache timeout is ignored
Sep 29, 2022
Chart cache timeout is ignored, I only tested with dataset cache timeout set but looking at the code I think it will be ignored irrespetive of dataset cache timeout config.
How to reproduce the bug
ttl {cache_key}
-> it will be 120 seconds.cached a minute ago
tag on top right corner.Expected results
Chart cache timout should override dataset timeout setting, and return actual data from database after 5 seconds.
Actual results
Chart cache timout setting is ignored, and dataset cache timeout is used for checking existing cached data..
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
71bf2673071d5db6688fbaefd4457aeeae3464bb
)python --version
: 3.9node -v
: 16Checklist
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: