Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Process metadata for all dependencies #3608
When adding a dependency, also add the dependency to the metadata hash.
Addresses part 1 of #3591. Prior to this fix, the regnerator only paid attention the mtime of the first dependency it checked, so for posts/pages with N multiple dependencies (i.e., every layout file used to render them), it continues to regenerate the post/page approximately N times, at which point it's seen all of the dependencies.
@alfredxing Have you had a chance to look into this?
I've been using it for a while now, and it's been helpful. I haven't been making heavy use of my jekyll project, but what work I've been able to do has been made much easier with this change. I'm using a variation on the fauno/jekyll-pandoc-multiple-formats plugin that generates PDFs from various pages on the site, and this adds several minutes to the regeneration time. With the changes in d4b8f0d it takes much less time, as it only updates the document I'm changing.
I'd love to see this merged into the official branch!