nanoc / features

Collection of feature requests
2 stars 1 forks source link

Don’t recompile entire site after item is added #25

Closed denisdefreyne closed 6 years ago

denisdefreyne commented 6 years ago

When a new item is added to a site, Nanoc recompiles the entire site, because it cannot accurately estimate the impact of the addition of an item.

For example, in an site that has individual articles along with an “archive” page that collects all articles, the archive page will be (correctly) recompiled when an article is added, but all other pages will also (incorrect) be recompiled.

denisdefreyne commented 6 years ago

Intelligent item queries (nanoc/rfcs/pull/2) are part of the answer to this question, but with Nanoc 4’s #find and #find_all methods on item/layout collections, I believe that this situation can be improved even without intelligent item queries.

denisdefreyne commented 6 years ago

I forgot that this was already implemented! 🤦‍♂️