On a multilingual site, each language has its own URLs and its own cached pages. Powered Cache integrates with WPML so that updating a post also refreshes its translations, preloading covers every language, and you can clear or preload one language at a time from the admin bar.
Available in: Powered Cache (free)
Where to find it: Automatic when WPML is active. Per-language actions are in the admin bar under Powered Cache.
What Powered Cache does with WPML #
Clearing translations #
When you publish or update a post, Powered Cache clears the post and its related pages as described in Page caching. On a WPML site it also clears:
- the home page, posts page and archives in the post’s language, with their translated URLs;
- every other published translation of the post, so language switchers and
hreflanglinks on those pages stay current; - a new translation as soon as WPML links it to the original, including translations completed in WPML Translation Management.
This also works for posts saved in the block editor, where WPML can detect the language from the editor instead of the post.
Preloading every language #
A full cache preload includes the URLs of all active languages. Powered Cache uses WPML’s translated slugs, so /de/produkte/ is preloaded instead of a guessed /de/products/. If a post or category has no translation, no URL is invented for it. Only the home page of each language is always included.
Changed in 4.1: Translated URLs are now preloaded beyond the first 1,000 posts and 100 terms per taxonomy, and the admin bar Preload Cache command keeps the language you select. Since 4.0.2, preload uses translated slugs instead of only changing the language prefix.
A different domain per language #
If WPML uses a different domain for each language, Powered Cache writes a configuration file for each language domain when you save settings. This lets the page cache serve every domain. It applies when Powered Cache is activated on a single site, not network-wide.
Clear or preload one language #
Administrators see extra items in the admin bar under Powered Cache:
- Purge Page Cache lists each active language with its flag, plus All languages. Choosing a language clears only the cached pages under that language’s URL. This list appears when WPML uses language directories (
example.com/de/) or a domain per language. - Preload Cache lists each active language, plus All languages. Choosing a language starts a full preload of that language only.
The All languages items appear when more than one language is active. When Async Cache Cleaning is on, clearing a language runs in the background.
Recommended setup #
- Check your language URL format in WPML → Languages → Language URL format. Language directories or a domain per language work best with page caching.
- If you use Language name added as a parameter (
?lang=de), addlangto Cache Query Strings in Powered Cache → Advanced. Otherwise pages in other languages are not cached, because URLs with unknown query parameters are never cached. - Turn on Cache Preload so every language is warmed after a full cache clear.
- Open a translated page in a private window and check that it is cached.
The per-post options in the editor, such as Don’t cache this post, are not copied between translations. Set them on each translation that needs them. See Exclude a page from the cache.
WooCommerce Multilingual and multiple currencies #
With WooCommerce Multilingual & Multicurrency, a visitor’s currency and country must not leak into another visitor’s cached page. Powered Cache handles this automatically:
- It tells WooCommerce Multilingual to store the visitor’s currency in a cookie.
- It adds
wcml_client_currency,wcml_client_currency_languageandwcml_client_countryas vary cookies, so each currency and country gets its own cached copy. - Cached pages are then served by PHP instead of directly by the web server, because server rules cannot tell cookie values apart.
Activating or deactivating WooCommerce Multilingual updates the configuration and clears the page cache. See also WooCommerce.
Polylang, TranslatePress and other plugins #
Powered Cache has built-in integration for WPML and WooCommerce Multilingual only. With Polylang or TranslatePress, the Optimization Advisor suggests Confirm multilingual preload, but there is no per-language clearing or preloading. Pages are cached per URL as usual. After you update a post, clear the cache of its translations by hand if they show outdated content, or add those URLs to Purge Additional Pages.
Troubleshooting #
A translated page shows an outdated language switcher #
Update Powered Cache to 4.0.2 or later, which clears other translations when you save a post. For pages changed before the update, use Purge Page Cache → All languages once.
Pages of one language are not preloaded #
Check that the language is active in WPML and that the posts are translated and published. Untranslated posts have no URL in that language, so they are skipped. Then use Preload Cache with that language in the admin bar and watch the status on the Preload screen.