1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Speed up warmServer by loading pages (and files) asynchronously (#16752)

* Async `new Page`

* Update pages.js

* Update pages.js

* Update pages.js

* Update pages.js

* Update pages.js

* Using mapLimit

* Update pages.js

* Test updates

* Update pages.js

* Move exists to page class

* Test fixes

* Slightly faster localized paths process
This commit is contained in:
Kevin Heis
2020-12-09 08:57:18 -08:00
committed by GitHub
parent ee7c1bce3d
commit 1d5e216404
10 changed files with 142 additions and 103 deletions

View File

@@ -4,6 +4,8 @@ const ignoredPagePaths = config.files[0].ignore
const ignoredDataPaths = config.files[2].ignore
describe('crowdin.yml config file', () => {
jest.setTimeout(60 * 1000)
let pages
beforeAll(async (done) => {
pages = await loadPages()