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.
by Duppins Technology · github.com/duppinstech/magic-page-query-helper · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/duppinstech/magic-page-query-helper/archive/refs/heads/main.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.