def clear_cache(self, request): invalidate_instance(self.instance) CachedContent.invalidate(self.instance) messages.success(request, _("Exercise caches have been cleared."))
def clear_cache(self, request): invalidate_instance(self.instance) CachedContent.invalidate(self.instance) CachedStudents.invalidate(self.instance) messages.success(request, _("Exercise caches have been cleared."))