code: def check_cache(self, template):
          '''
          Cache a file only once
          '''
          if template not in self.cached:
              self.cache_file(template)
              self.cached.append(templatef check_cache(self, template):
          '''
          Cache a file only once
          '''
          if template not in self.cached:
              self.cache_file(template)
              self.cached.append(template)
docs: Cache a file only once