Skip to content

Commit f58af2a

Browse files
committed
don't wrap the sentinal value :nocache in a tuple
1 parent 8e8b215 commit f58af2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/query/planner.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ defmodule Ecto.Query.Planner do
136136
def query(query, operation, cache, adapter, counter, query_cache?) do
137137
{query, params, key} = plan(query, operation, adapter)
138138
{cast_params, dump_params} = Enum.unzip(params)
139-
key = if query_cache?, do: {key, counter}, else: :nocache
139+
key = if query_cache? and key != :nocache, do: {key, counter}, else: :nocache
140140
query_with_cache(key, query, operation, cache, adapter, counter, cast_params, dump_params)
141141
end
142142

0 commit comments

Comments
 (0)