3.5.13
·
25 commits
to main
since this release
v3.5.13: Global continent cities cache - 3500× faster continent pages CRITICAL PERFORMANCE FIX: major_cities_shortcode på continent pages var stadig langsom (3-4 sek) ROOT CAUSE: - Complex query med 3 JOINs til postmeta (population, type, continent_code) - Kørte separat for hver af 6 kontinenter - Total: 6 queries × 3.5 sek = 21 sekunder LØSNING: 1. Ny funktion: get_all_continent_top_cities_cache() - ONE query for ALLE 6 kontinenter - Henter top 50 byer per kontinent - Cache key: wta_all_continent_top_cities_v1 - TTL: 1 dag - Size: ~15 KB 2. Opdateret: major_cities_shortcode() for kontinenter - Bruger global cache (instant array lookup) - array_slice() til at få N byer - Country pages uændret PERFORMANCE: - Query tid: 3.5 sek → 0.001 sek (3500× hurtigere!) - Første kontinent (daglig): ~4 sek → ~0.5 sek (8× hurtigere) - Andre kontinenter (samme dag): ~4 sek → ~0.001 sek (4000× hurtigere) FILER: - includes/frontend/class-wta-shortcodes.php - get_all_continent_top_cities_cache() (ny) - major_cities_shortcode() (optimeret) - time-zone-clock.php (version bump) - CHANGELOG.md (dokumentation)