Batched Reindexing #85
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces batched reindexing to WP Loupe, making it safer and more reliable to rebuild large search indexes without running into admin request timeouts. It adds new REST and WP-CLI interfaces for maintenance, updates documentation and tutorials, and improves developer tooling with Pest support.
Major features and improvements:
Batched Reindexing & Maintenance:
WP_Loupe_Indexer(reindex_batch_initandreindex_batch_step), enabling incremental index rebuilds to avoid timeouts on large sites.POST /wp-json/wp-loupe/v1/reindex-batch) and a WP-CLI command (wp wp-loupe reindex) for batched reindexing.Documentation & Tutorials:
Developer Tooling:
Internal Improvements:
WP_Loupe_Indexerconstructor to allow disabling hook registration (for improved testability).Changelog and Versioning:
CHANGELOG.md. [1] [2]