I was just wondering if the build time for my project is normal. I’m using v0.30.2.
Started building sites ...
Built site for language en:
0 draft content
0 future content
0 expired content
2597 regular pages created
194 other pages created
0 non-page files copied
297 paginator pages created
22 categories created
38 tags created
total in 56250 ms
I’m sure there are other things you might need to know to determine if this is a normal build time or not, but I’m not sure what that information is so please let me know and I’ll provide what I can.
You’d have to find a site with content similar to yours to make an accurate comparison. However, you can check template metrics to see what is happening on a template level. It should help you optimize.
We won’t be able to comment without seeing the code, so share a link if it is online.
Also, check out partialCached. Depending on which parts are conditionals, you can probably reduce the builds for any partial that only needs to be rendered once, and then reused everywhere.
It looks like you’re using some complex statements on every single page. I’ve got some sites with a lot of queries that still take < 3 seconds, so you really should look at those and see if you can simplify. Unfortunately, I doubt there’s much more than that we can do without seeing your code.