Magic Page Query Helper
WordPress plugin that reduces database load when using Magic Page (or similar location-based generators) with very large numbers of location terms.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/duppinstech/magic-page-query-helper/releases/download/v1.0.1/magic-page-query-helper.zipWordPress plugin that reduces database load when using Magic Page (or similar location-based generators) with very large numbers of location terms.
What it does
- Runs one bulk query to load all
locationterm meta, then short-circuitsget_term_metadatasoget_term_meta()does not issue thousands of per-term queries. - Runs one bulk query to load all
locationterms and primes WordPress’s term cache soget_term()can hit cache more often.
It does not modify Magic Page files. It is compatible with full-page caching (e.g. LiteSpeed Cache) and does not replace Magic Page’s own caching.
Requirements
- WordPress 6.0+
- PHP 7.4+
- The
locationtaxonomy (Magic Page registers it)
Install
- Copy the
magic-page-query-helperfolder intowp-content/plugins/. - Activate Magic Page Query Helper in Plugins.
No settings page is required for normal operation; an optional Settings → MPQH Dashboard page shows status and last front-end request stats.
Development
- Main file:
magic-page-query-helper.php - WordPress plugin readme (for directories):
readme.txt
License
GPL-2.0-or-later. See LICENSE.
Security
See SECURITY.md for how to report vulnerabilities responsibly.
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.