Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Post grid block: Unbounded query for pages #354

Open
mindctrl opened this issue Apr 13, 2020 · 0 comments
Open

Post grid block: Unbounded query for pages #354

mindctrl opened this issue Apr 13, 2020 · 0 comments

Comments

@mindctrl
Copy link
Contributor

In #349 we added a page query that pulls in pages with a per_page: -1 argument.

Reference:

const getPages = wp.data.select( 'core' ).getEntityRecords( 'postType', 'page', { per_page: -1 } )

We need to update this to pull in content in batches to avoid query timeouts on very large sites.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant