Skip to content

Commit

Permalink
Memoize the return value of Document#url (#6266)
Browse files Browse the repository at this point in the history
Merge pull request 6266
  • Loading branch information
parkr committed Aug 12, 2017
1 parent 1096b42 commit e68c8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/document.rb
Expand Up @@ -203,7 +203,7 @@ def permalink
#
# Returns the computed URL for the document.
def url
@url = URL.new({
@url ||= URL.new({
:template => url_template,
:placeholders => url_placeholders,
:permalink => permalink,
Expand Down

0 comments on commit e68c8e6

Please sign in to comment.