Lang Forge batches its translation lookups. However, large multilingual sites with thousands of pages and many languages benefit from understanding how Lang Forge handles performance and what steps you can take to keep your site running smoothly.
How Lang Forge Handles Performance Internally
Lang Forge uses several techniques to minimize its performance footprint:
Language from the URL. When a visitor requests a page, Lang Forge reads the language from the address, as your URL format sets it. Only when the Auto-detect Language setting is on does a first visit without a language cookie also read the Accept-Language header of the browser. Translation group loaded once. To list the translations of a page, Lang Forge loads the posts of its translation group into the WordPress object cache with one query, so the language switcher and the menus, which ask for the same group again, find it cached. Lazy loading of translation data. Translation metadata (like Content Diff snapshots and Translation Memory matches) is only loaded when you access the admin pages that need it. Frontend page loads do not read these tables, except for the optional comment translation of the Pro add-on, which looks in the Translation Memory the first time a comment is shown in another language. Hreflang tags. Lang Forge prints one hreflang link in the head of a page for each published translation of it, and an x-default link for the default language.Caching Strategies
Proper caching is the single most effective way to ensure fast page loads on a multilingual site:
Page caching (required).Install a page caching plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache, or WP Super Cache). Page caching stores the fully rendered HTML of each page so that subsequent visitors receive the cached version without any PHP or database processing. Since each language has its own URL, each language version is cached independently.
Object caching (recommended).If your hosting supports Redis or Memcached, install an object cache plugin (Redis Object Cache is popular). Object caching stores database query results in memory, so even the first visitor after a cache clear gets faster responses. The query that reads the translation groups of a page goes to the database; the posts of a group are read through the WordPress post cache, which a persistent object cache keeps between requests.
Browser caching.Make sure your server sends proper cache headers for static assets (CSS, JavaScript, images). This is typically handled by your hosting or caching plugin. Lang Forge’s admin CSS and JavaScript files include version numbers in their filenames, so they are automatically cache-busted when the plugin updates.
CDN (recommended for global audiences).A content delivery network like Cloudflare, BunnyCDN, or AWS CloudFront serves your pages from servers close to each visitor. For multilingual sites targeting different countries, a CDN serves your pages from servers near each visitor. Each language URL is cached and served independently.
Best Practices for Large Multilingual Sites (1,000+ Pages)
Large sites require a few extra considerations to maintain optimal performance:
1. Limit translatable content types.Only enable translation for content types that actually need it. If you have a Custom Post Type for internal documentation that visitors never see, leave it unticked under Translatable Post Types. Every enabled post type adds to the translation mapping data that Lang Forge manages.
2. Publish translations progressively.Avoid publishing 10,000 translated posts simultaneously. Publish in batches of 100 to 500 to give caching systems time to build their caches. A sudden influx of new pages can cause a “cache stampede” where many visitors hit uncached pages at the same time.
3. Look after the database tables.Lang Forge has no database optimization screen. Keep its tables in good shape with the tools of your host or a plugin such as WP-Optimize or WP Sweep, as described under the database tips below.
4. Monitor query performance.Install the Query Monitor plugin during development and testing. It shows you exactly how many database queries each page load generates and which ones are slowest. Look for any Lang Forge queries that take more than 10 milliseconds — this usually indicates a missing index, which your host or a database tool can help you check.
5. Check the database server on a large site.Lang Forge keeps each translation as a post of its own, so 5,000 pages in 5 languages are 25,000 posts, and the posts and postmeta tables are larger. If Query Monitor shows slow queries on a site of that size, ask your host whether a VPS, a managed WordPress host or a dedicated database server fits.
Database Optimization Tips
Lang Forge stores translation data in custom database tables that are optimized for read-heavy workloads. Here are tips for keeping the database performing well:
Keep the post table clean.Delete old revisions, trashed posts, and spam comments regularly. WordPress stores revisions for every translated post, so a site with 1,000 pages in 5 languages may have 5,000 posts plus tens of thousands of revisions. Use a plugin like WP-Optimize or WP Sweep to clean up regularly.
Optimize the wp_options table.The wp_options table is loaded on every WordPress request. If it grows very large (common on sites with many plugins), it slows down every page load. Run DELETE FROM wp_options WHERE autoload = 'yes' AND option_name LIKE '_transient_%' periodically (or use a plugin) to clean expired transients. Lang Forge saves each of its settings as its own option, for example langforge_url_format and langforge_switcher_style.
Translation Memory grows automatically as you publish translations, save changed segments in the Visual Editor, or run AI translation. For most sites, TM size is not a concern. To see how many entries you have, go to Lang Forge > Tools > Translation Memory. The screen shows the number of entries in memory and lists them, most recently updated first, with their source and target text, their languages, how often each was used, and when it was updated. You can search the list, edit or delete an entry, and export entries as a TMX file. Lang Forge sets no limit on the size and has no function that archives entries, so you clear out entries you no longer need by deleting them on that screen.
Index custom meta queries.If your theme or other plugins run custom meta_query operations on translated posts, make sure the relevant meta_key values are indexed. WordPress does not add indexes to wp_postmeta by default. Your hosting provider or a database administrator can add targeted indexes for your most frequently queried meta keys.
Performance Monitoring Checklist
Use this checklist monthly (or after major content additions) to keep your multilingual site fast:
| Check | How to verify | Target |
|---|---|---|
| Page load time (frontend) | Use Google PageSpeed Insights or GTmetrix | Under 3 seconds |
| Database queries per page | Use the Query Monitor plugin, which lists the queries by plugin | No fixed number. Lang Forge reads the translation groups of the posts on a page with one query, and the items of each menu with one more |
| Page cache hit ratio | Check your caching plugin’s statistics | Above 90% |
| Database table sizes | Check the table sizes in your database tool, for example phpMyAdmin | Translation tables under 100 MB |
| Object cache hit ratio | Check Redis or Memcached statistics | Above 80% |
| Translation Memory size | Check the number of entries on Lang Forge > Tools > Translation Memory | Lang Forge sets no limit; delete entries you no longer need |
> Tip: The biggest performance win for most multilingual sites is page caching. If you install no other optimization tool, install a page caching plugin. It eliminates the vast majority of server-side processing for repeat visitors.
> Good to know: The Lang Forge language switcher adds no JavaScript to your pages: it is plain HTML plus one small stylesheet (language-switcher.css), and the dropdown opens through CSS.
—