Region-specific languages in the context tag, faster array_contains filters, more reliable Liquid tags in loops and partials
November 27, 2026
NEW
- The
contexttag accepts a region or script after the language: For example,{% context language: 'en-GB' %},pt-BR,es-419orzh-Hant. Translations are looked up under exactly that locale, and fall back to the language when fallbacks are on. An invalid language is reported and no longer applied.
IMPROVED
array_containsfilters in GraphQL queries are much faster on large tables: They now use the database indexes on record properties, so a query that filters by one or morearray_containsconditions no longer reads every record of the table. Results are the same.- A value that contains itself fails where it's used, with a clear Liquid error:
hash_assign,assignwith<<,array_add,array_prependandhash_add_keyno longer reject a hash or array that ends up containing itself. Outputting it, or passing it tojson,deep_clone,hash_merge,hash_diff,logor GraphQL arguments, reportsvalue contains itself or is nested too deeply, which{% try %}can catch. Values nested too deeply are reported the same way. - The
sessiontag refuses to store a value that contains itself: Previously the value was stored and broke every later request of that visitor. - A
graphqltag inside a loop or a partial rendered many times looks up its query once per request: A deprecation warning for a short query name is now logged once, not on every iteration. - The missing template log entry names the full path and the page: When a page's layout can't be found, the
Liquid Missing Template errorlog entry now shows every path that was looked up (for example,modules/foo/jsoninstead ofjson) and the page that asked for it.
FIXED
{% cache %}handles anyexpirevalue: Anexpireof 0 or below now renders the block without caching. Previously a negative value cached the block for a week. A numeric string such as'300', for example from a constant, now caches for that many seconds, and a value that isn't a number (such asfalse) renders the block without caching instead of returning a Liquid error. Very large values are capped at one year.- Forms inside
{% cache %}keep a valid CSRF token: When the samecachetag was rendered more than once in a request (for example, in a loop or a partial rendered several times), the cached output could still contain an earlier request's token, so the form was rejected on submit. {% try %}runs itscatchblock only for its own error: Inside a loop, an iteration that succeeded after a failed one no longer runs thecatchblock. Atryin a partial that is also rendered inside the sametrynow catches its error instead of raising it again.{% transaction %}uses its owntimeoutevery time it runs: Previously, atransactiontag in a loop or a partial rendered several times kept the timeout from its first run.admin_background_jobsreturns correct dates:created_atwas returned as a date around the year 58,000 andfailed_atas a bare number, and sorting bycreated_atorenqueued_atmixed up older and newer jobs.- Writing to
context.constantsor translations returns a Liquid error: For example,c is read-only. Previously it caused a 500 error.context.globals.time_zonesis now read-only too. form_forwith the removedform_for_typeattribute no longer fails: The attribute is ignored.- An inline
graphqlquery with only whitespace no longer runs another query: Previously, it could run the query of agraphqlpartial included earlier in the request. - Errors in
{% background %}name the right line when the opening tag spans several lines - Clearer errors for invalid arguments in
sign_inandhash_assign:sign_inwith a non-numerictimeout_in_minutes(for example,trueor an array) reportstimeout_in_minutes must be a number.hash_assignwith an array index that is an undefined variable reports that the index isnull.