code: def clearCache(self):
          'Clears cached items (e.g., when model is reset).'
          for attr in self.cacheItems:
              if hasattr(self, attr):
                  delattr(self, attrf clearCache(self):
          'Clears cached items (e.g., when model is reset).'
          for attr in self.cacheItems:
              if hasattr(self, attr):
                  delattr(self, attr)
docs: Clears cached items (e.g., when model is reset).