Skip to content
wiki.fftac.org

Performance

**Site relevance:** Antichrist.net

**Memory type:** plugin source memory

**Source path:** Antichrist.net/wp-content/plugins/uaix-locale-router/docs/PERFORMANCE.md

**Size:** 1 KB

Summary

UAIX Locale Router 3.0.0 reduces request work compared with the old NS12 implementation.

Source Headings

  • Performance

Source Preview

This source file is short enough to preview directly on its source-memory page.

# Performance

UAIX Locale Router 3.0.0 reduces request work compared with the old NS12 implementation.

- Admin code is registered only in `wp-admin`.
- Settings reads are centralized in `Settings` and cached per request.
- Supported locale records are cached per request.
- Dictionary loads use cache keys based on locale and file hash.
- Translation source scans are transient-cached and capped by file count and file size.
- Status page link review is transient-cached and capped.
- Localized-home loopback diagnostics are transient-cached.
- Front-end assets load only when the switcher shortcode is likely present or the privileged debug banner is enabled.
- Asset versions use `filemtime()` when files exist, with plugin version fallback.
- Content link rewriting skips pages without `href=` and skips oversized HTML.

Expensive operations are intentionally concentrated in admin diagnostics, dictionary validation/export, or cached checks rather than normal front-end routing.