Use variables in cache duration

I know we can cache queries and that we can set the amount of seconds it should be cached. Would it be possible to use variables with {{ }} ? Or is it possible to invalidate the cache some other way?

Hey @Steven_W! You can invalidate a queries cache using JS with the invalidateCache() function. Just call it on your query.

Example: query1.invalidateCache()