Clears cached items (e.g., when model is reset).

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