mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Update assign_score during capturing
To stop long captures before they grow the heap more then they should.
This commit is contained in:
@@ -170,7 +170,7 @@ module Liquid
|
||||
end
|
||||
idx += 1
|
||||
|
||||
context.resource_limits.check_render_length(output.bytesize)
|
||||
context.resource_limits.increment_write_score(output)
|
||||
end
|
||||
|
||||
output
|
||||
|
||||
Reference in New Issue
Block a user