During task preview, Liquid lookups referencing the shop cache will now return nil/null.
For context: historically, task previews have been able to read real values from the Mechanic cache. This new cache policy is consistent with how Mechanic treats the Shopify Admin API: during task preview, the Shopify Admin API is inaccessible. By preventing task previews from accessing stateful/ephemeral data, we aim to encourage consistency and reliability in task previews themselves.
This change only impacts task previews. There are no other changes to Mechanic cache functionality.
Read more