Clear Query Cache
This action provides a simple way to clear the query cache, which can be helpful in situations where the cached data is no longer accurate or needs to be refreshed. By executing this action, you reset the query cache, allowing the app to fetch and display the most up-to-date data.
This can help improve app performance and ensure users see the most recent information available.
Follow the steps below to add this action to any widget.
- 1.Select the Widget (e.g., Container, Button, etc.) on which you want to add the action.
- 2.Select Actions from the properties panel (the right menu), If it's the first action, click + Add Action button. Otherwise, click the "+" button below the previous action tile (inside Action Flow Editor) and select Add Action.
- 3.Search and select the Clear Query Cache (under State Management) action.
- 4.Determine the Scope of the cache, whether it lives at the App Level or Page Level.
- 5.Set the Query Name to the one you gave while adding the query cache.
- 6.If you have set the Unique Key while caching a query (see step 5 here), you should add the same key here as well. This ensures that the cache will be removed only for specific data.

Adding Clear Query Cache action
Last modified 2mo ago