code: def get_email_template(name, language=''):
      
      use_cache = getattr(settings, 'POST_OFFICE_CACHE', True)
      if use_cache:
          use_cache = getattr(settings, 'POST_OFFICE_TEMPLATE_CACHE', True)
      if not use_cache:
          return EmailTemplate.objects.get(name=name, language=language)
      else:
          composite_name = '%s:%s' % (name, language)
          email_template = cache.get(composite_name)
          if email_template is not None:
              return email_template
          else:
              email_template = EmailTemplate.objects.get(name=name,
                                                         language=language)
              cache.set(composite_name, email_template)
              return email_template
docs: Function that returns an email template instance, from cache or DB.