Skip to content

Commit

Permalink
Use cache.
Browse files Browse the repository at this point in the history
With this change, the generation time shorts from 3 min to 3 s for about 800 files. 

Reference: hexojs/hexo#1769
  • Loading branch information
zklhp committed Jan 1, 2017
1 parent 237eeaa commit eab5c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/base.jade
Expand Up @@ -51,11 +51,11 @@ html(lang='#{config.language}')
if theme.widgets_on_small_screens
.pure-u-1.pure-u-md-1-4: #sidebar
each item in theme.widgets
!= partial('_widget/' + item + '.jade')
!= partial('_widget/' + item + '.jade', null, {cache: !config.relative_link})
else
.pure-u-1-4.hidden_mid_and_down: #sidebar
each item in theme.widgets
!= partial('_widget/' + item + '.jade')
!= partial('_widget/' + item + '.jade', null, {cache: !config.relative_link})
.pure-u-1.pure-u-md-3-4
!= partial('_partial/footer.jade')

Expand Down

0 comments on commit eab5c80

Please sign in to comment.