]> sipb.mit.edu Git - ikiwiki.git/commit
trail: don't generate a costly dependency when forcing sort order
authorSimon McVittie <smcv@debian.org>
Fri, 11 Jul 2014 21:08:08 +0000 (22:08 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 11 Jul 2014 21:08:08 +0000 (22:08 +0100)
commit3f4a93574071c004fc332a68b2cac1f70de7f940
tree0639b4ca388d5503dae6143997dfa685ff9f8de5
parent48c310ddbd45ac932495bcd5ece8f25b95e64528
trail: don't generate a costly dependency when forcing sort order

pagespec_match_list() makes the current page depend on the pagespec
being matched, so if you use [[!trailoptions sort="..."]] to force
a sort order, the trail ends up depending on internal(*) and is
rebuilt whenever anything changes. Add a new sort_pages() and use that
instead.
IkiWiki.pm
IkiWiki/Plugin/trail.pm