Skip to content

Commit

Permalink
Merge pull request #6301 from jekyll/3.5-stable-backport-6266
Browse files Browse the repository at this point in the history
Backport #6266 for v3.5.x: Memoize the return value of Document#url
  • Loading branch information
parkr committed Aug 12, 2017
2 parents 1096b42 + e19bae8 commit 50453d2
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 50453d2

Please sign in to comment.