Reset resource consumption before each render

This commit is contained in:
Justin Li
2014-12-09 17:23:07 -05:00
parent 9f7e601110
commit c2f71ee86b
3 changed files with 8 additions and 5 deletions
+3
View File
@@ -205,6 +205,9 @@ module Liquid
context.add_filters(args.pop)
end
# Retrying a render resets resource usage
context.resource_limits.reset
begin
# render the nodelist.
# for performance reasons we get an array back here. join will make a string out of it.