Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed May 25, 2020
1 parent 52b108c commit 76ee44a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/jekyll-include-cache/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@ def quick_hash(params)
md5 = Digest::MD5.new

params.each do |key, value|
# Using the fact that Jekyll documents don't change within a site build.
# Instead of calculating the hash of an entire document (expesive!)
# we just use the object id.
# This allows posts and pages to be passed to `include_cached`
# without a performance penality.
# Using the fact that Jekyll documents don't change during a build.
# Instead of calculating the hash of an entire document (expensive!)
# we just use its object id.
if value.is_a? Jekyll::Drops::Drop
md5.update value.object_id.to_s
else
Expand Down

0 comments on commit 76ee44a

Please sign in to comment.