Global Delivery Network

Set Up Translation Cache

This article is for Account Owners and Project Managers.

Smartling offers a caching feature to help prevent untranslated content from appearing on your localized sites. This typically happens when you publish changes to your source site before the translation process has been completed. 

Smartling's caching feature allows you to take a snapshot of the current state of your translated pages, which are served to your site visitors. Once new content has been fully translated, your translation cache will be refreshed, bringing your localized pages in sync with your source site.

Static cache may not work on sites with a login or content customized based on user. Static cache may cause users to be logged in on a site not as the intended user as cookies may also be cached. Contact your Customer Success Manager to discuss if Smartling's caching tool is a good fit for your site.

Enable Caching

Once the caching feature has been enabled for your account:

  1. From within your Global Delivery Network project, click on Global Delivery Network > Configuration > Static Cache.
  2. Click the toggle to ON for any localized domain in your project for which you want to enable a cache.

Once caching has been enabled for a site, each page will be cached the first time it is visited. You can populate the cache manually by browsing your translated website or by using a crawler.

From then on, requests to that site will be served from the cache and any changes to your source site will not be reflected in cached domains.

Reset Cache

There are two ways to reset the cache for a localized page - automatic and manual.

Automatic

When all new strings on a page for a particular localized site have reached the published state, the cache for that page will be reset automatically.

Manually

You can reset the cache for an entire domain by clicking Reset from the Static Cache configuration page (Global Delivery Network > Configuration > Static Cache). If you want to reset only a specific page or directory, enter the URL or directory in the text box and click Reset. You can also enter the URL of an asset such as a style sheet or JavaScript file.

You can also append the URL parameter ?smartling_editmode=5 to the end of any localized page URL to use the inline browser tool to manage the cache for a translated page.

Some sites rely on non-HTML assets, most commonly CSS or JavaScript files, for serving content. These assets will not be captured by the automatic cache reset when strings on a page are translated, or by using the inline CAT tool. To reset these assets, you must use the Static Cache Configuration page and specify the URL of the asset.

Was this article helpful?