Hey S,
Nanoc generally tries to not recompile pages that don’t need to be, but it also errs on the side of caution and recompiles when it’s not 100% sure.
My suspicion is that there are some unexpected/incidental dependencies from the PDF file onto other items, and those dependencies trigger an undesirable recompilation of the PDF files.
You can use the `nanoc show-data` command to show the status of all the items in the site. It’s a lot of data, especially on larger sites. What you’ll likely be most interested in is the item dependencies (all the way at the top of th eoutput), which shows which items depend on which other items/layouts. Also interesting is the outdatedness reasons for each item, near the bottom of the output.
This could give you an idea of what unexpected dependencies exist. Then, if you’re able to identify those, you might be able to cut them, so that PDFs only get regenerated when they’re absolutely necessary.
Can you let me know how that works? Feel free to share your site source and the output of `nanoc show-data` as well if you’re struggling.
Best,
Denis Defreyne
[dəˈni] • pronouns: he/him