Why cache's model is not working for SQL queries?

Having enabled cache for models I can verify it works whenever I create a question from the query builder using the model as a base report.
However if I create a SQL query like this one:

WITH model AS {{#44}}
SELECT * FROM model

The cache is not working. Why is that?

Hi @ilopezluna
Because of a bug, which is fixed in the upcoming v45 coming in a couple of months:
https://github.com/metabase/metabase/issues/25516

1 Like