mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Fixing the CACHING (#2203)
Caching wasn't working after deprecate_v1, this addresses it. Also surfacing whether the data is served from cache in explore view and a way to force run the query bypassing the cache.
This commit is contained in:
committed by
GitHub
parent
ce1e18b31b
commit
d5ba88b407
@@ -229,9 +229,9 @@ export function updateChartStatus(status) {
|
||||
}
|
||||
|
||||
export const RUN_QUERY = 'RUN_QUERY';
|
||||
export function runQuery(formData, datasourceType) {
|
||||
export function runQuery(formData, force = false) {
|
||||
return function (dispatch) {
|
||||
const url = getExploreUrl(formData, datasourceType, 'json');
|
||||
const url = getExploreUrl(formData, 'json', force);
|
||||
const queryRequest = $.getJSON(url, function (queryResponse) {
|
||||
dispatch(chartUpdateSucceeded(queryResponse));
|
||||
}).fail(function (err) {
|
||||
|
||||
Reference in New Issue
Block a user