A multilingual site builds every search dropdown, property grid and menu once per language. WPEstate Translate keeps a separate cache for each language, so switching languages stays fast and one language never shows the cached lists of another. This article explains what is cached and when to clear it.
What Is Cached per Language
- Search dropdowns and Elementor lists. The theme caches the lists of actions, categories, cities, areas, counties, statuses and features. With WPEstate Translate each language gets its own copy, so the Portuguese search shows Portuguese city names.
- The main menu. The cached menu is also kept per language.
- Custom Field Rules. The rules from WPEstate Translate > Custom Field Rules are loaded once and kept in the object cache (Redis or Memcached) if your host has one.
When the Cache Is Cleared for You
WPEstate Translate clears the WPResidence cache on its own when:
- a bulk automatic translation in WPEstate Translate > Automatic Translation finishes;
- a post translated with the Auto translate button is published;
- Automatic Translate in Theme & Plugins Strings finishes.
When to Clear the Cache Yourself
Click Clear WpResidence Cache in the top admin bar when:
- you translated categories, cities or features and the search dropdown still shows the old names;
- you changed a menu and one language still shows the old one;
- you imported many listings.
After new texts in Theme & Plugins Strings, click Generate translation files first. If you use a cache plugin, a server cache or a CDN, clear them too.
Keep a Large Site Fast
- Use an object cache such as Redis or Memcached if your host offers one. It helps most with many languages and thousands of listings.
- Visit each language once after a large import or translation run. The first visit rebuilds the lists, later visits use the cache.
- Keep the cache plugin language-aware. Pages under /br/ and pages without a prefix are different pages. Do not exclude the language prefixes from the cache.
More: Cache Purge and Reset Tools and Where Your Translations Live.
