After upgrading to V.8 and utilizing params on an external dashboard (thanks btw!) we see that sometimes, when changing params, it actually runs the query, but sometimes it fetches cached results which are usually too old for our use case (e.g 16 hours ago).
My questions:
How is this caching mechanism working? (I tried query_results but reached a dead end)
Can i change this logic to force a data fetch from the source DB?
Otherwise, i need to run all available params combinations which sounds a bit too much
Here’s an example- https://i.imgur.com/EwqtTvu.gifv
A hack i found is to add a random() or sysdate functions, then the queries are always refreshed (i assume it avoids the cached results?)
Right now it will always try to fetch a cached result unless you click on refresh (either at a widget or dashboard level). The reason is performance and to reduce stress for the database.
We can look into adding some control around this to specify the “max age” for a result you might want to receive. Will this help?
Having a “max age” will definitely help. In our case some queries have a daily and some hourly rhythm so controlling this will support relieving DB stress. Thank you
Login or sign up disabled while the site is in read only mode