We have a heavy query that I'd like to implement caching for. I have the Advanced settings for the query togged to cache the results for 300 seconds.
I also have a button with an event handler that is set to clear the cache:
Clicking this button triggers the invalidateCache and a notification that the cache was successfully cleared:
But, refreshing the table multiple times, the results continue to be pulled from cache:
And, checking the state logs, my the query's servedFromCache stays
true despite multiple cache clearing. The only time it returns false is after the 300 seconds elapse.
I've read almost every post about caching issues and can't find a solution.