mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
fix: Clear the strainer cache when a global filter is added (#826)
This commit is contained in:
committed by
GitHub
parent
86944fe7b7
commit
b146b49f46
@@ -39,6 +39,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def self.global_filter(filter)
|
||||
@@strainer_class_cache.clear
|
||||
@@global_strainer.add_filter(filter)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user