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 authored and jekyllbot committed Aug 4, 2017
1 parent 305e293 commit d8dfc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/document.rb
Expand Up @@ -204,7 +204,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 d8dfc33

Please sign in to comment.