code: def reset(self):
          
          with self.lock:
              if self.cache:
                  if self.use_tmp:
                      shutil.rmtree(self.tmp_dir, ignore_errors=True)
                  else:
                      self.templates = {}
docs: Resets the cache of compiled templates.