Translatepress causing lag on load
-
Hello! I use Translatepress on all of my multilingual sites, however for the first time I am encountering a problem where there is lag on site load.
Using Query Monitor, I found that with TranslatePress enabled:
- The site triggers ~174 database queries per page load.
- Many of them are large
SELECTqueries like:SELECT tt.id, CASE WHEN ot.original IS NULL THEN ot.original ELSE NULL END AS ... FROM wp_trp_gettext_fr_fr ... LEFT JOIN wp_trp_gettext_original_strings AS ot ON ...These originate fromTRP_Query->get_all_gettext_strings(). - Total load time: ~6.9 seconds (compared to 0.6 s when TranslatePress is disabled).
When I disable TranslatePress, the same page drops to:
- 44 queries total
- ~0.6 s load time
- No visible lag
Environment:
- Hosting: o2switch (LiteSpeed servers, Redis & Memcached available)
- Object cache (Redis) enabled
- Builder: Bricks Builder 2.0.2
- Multilingual setup: small site, 2 languages (french / english)
- Other plugins: Slim SEO, CookieYes, Wordfence, WPCode, Litespeed Cache (none seem to be causing performance issues from my tests)
Any help is welcome, thanks!
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.