Commit 49b3ef0
committed
Fix renderInnerPage availability note, cache key inconsistency, add pMap concurrency
- Availability: renderInnerPage/renderFullPage are also callable from page
functions and layouts, not just templates and global.data.js
- Cache key: use page.pageInfo.path consistently (the read side previously
used the undefined 'post.path')
- Concurrency: switch the pre-render example from Promise.all to pMap with
concurrency:4 to avoid unbounded parallelism on large sites1 parent f12a49f commit 49b3ef0
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
961 | | - | |
| 961 | + | |
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | 965 | | |
| 966 | + | |
| 967 | + | |
966 | 968 | | |
967 | | - | |
| 969 | + | |
968 | 970 | | |
969 | | - | |
| 971 | + | |
970 | 972 | | |
971 | 973 | | |
972 | | - | |
| 974 | + | |
973 | 975 | | |
974 | 976 | | |
975 | 977 | | |
| |||
0 commit comments