How can I clear the cache?

If you have a scenario where you want to invalidate the cache you can:

  • click publish
  • call our cache API

Both of those actions will instantly cause the cache to refresh.

You can also have the cache clear programatically:

If you are using our L1 cache - i.e. using scheduled caching with refreshKey, you can set your cache to refresh if there are new results:

If you are using our pre-aggregations cache (L2 cache) you can also do something similar, where if the results of the SQL refresh key differ from the last execution, then the pre-aggregation will be refreshed: