code: def _cache_translation(translation, timeout=cache.default_timeout):
      
      if not appsettings.PARLER_ENABLE_CACHING:
          return
  
      if translation.master_id is None:
          raise ValueError("Can't cache unsaved translation")
  
      # Cache a translation object.
      # For internal usage, object parameters are not suited for outside usage.
      fields = translation.get_translated_fields()
      values = {'id': translation.id}
      for name in fields:
          values[name] = getattr(translation, name)
  
      key = get_translation_cache_key(translation.__class__, translation.master_id, translation.language_code)
      cache.set(key, values, timeout=timeout)
docs: Store a new translation in the cache.