Clearing redis cache on a query on new data or data change

Hey guys,

I just enabled caching for the first time on a query (GET endpoint) level via the interface, see screenshot.

Now I am wondering, can I also force a cache clearing for this query (GET endpoint), if e.g. a user hits a POST endpoint and adds a new data row?

Right now, I have the problem that my query uses an Addon and if data changes in the table that this addon relys on I would love to reset the cache for queries on this table and also for queries that use the addon otherwise I serve old data.

I saw that there are cache management functions available but I don't know the key for this query cache as it is setup on a query level in the interface and not programatically.

Thanks so much

Timo

9 replies