mirror of
https://github.com/Shopify/liquid.git
synced 2026-01-26 12:14:58 +00:00
remove expression caching while rendering
This commit is contained in:
parent
7124540563
commit
e200c4544b
@ -39,7 +39,6 @@ module Liquid
|
||||
@filters = []
|
||||
@global_filter = nil
|
||||
@disabled_tags = {}
|
||||
@expression_cache = LruRedux::ThreadSafeCache.new(1000)
|
||||
|
||||
# Instead of constructing new StringScanner objects for each Expression parse,
|
||||
# we recycle the same one.
|
||||
@ -181,7 +180,7 @@ module Liquid
|
||||
# Example:
|
||||
# products == empty #=> products.empty?
|
||||
def [](expression)
|
||||
evaluate(Expression.parse(expression, @string_scanner, @expression_cache))
|
||||
evaluate(Expression.parse(expression, @string_scanner))
|
||||
end
|
||||
|
||||
def key?(key)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user