def on_nocache(self, *args):
    if self.nocache:
        self.remove_from_cache()
        if self._coreimage:
            self._coreimage._nocache = True
def on_nocache(self, *args):
    if self.nocache:
        self.remove_from_cache()
        if self._coreimage:
            self._coreimage._nocache = True