Update assign_score during capturing

To stop long captures before they grow the heap more then they should.
This commit is contained in:
Dylan Thacker-Smith
2020-09-03 11:13:08 -04:00
parent ae9dbe0ca7
commit e1a2057a1b
3 changed files with 26 additions and 6 deletions
+1 -1
View File
@@ -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