Skip to content

Commit

Permalink
Further fix to #553: Allow caching but using our digesting to bust it.
Browse files Browse the repository at this point in the history
  • Loading branch information
envygeeks committed Nov 13, 2018
1 parent a6abdf2 commit f6673c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/assets/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def parse_liquid(obj, ctx:)
})
end
when obj.is_a?(String)
k = SecureRandom.hex
k = Digest::SHA256.hexdigest(obj)[0, 6]
ctx.registers[:site].liquid_renderer.file("(asset:var:#{k})")
.parse(obj).render!(ctx)
else
Expand Down

0 comments on commit f6673c0

Please sign in to comment.