def clear_cache(self): url = self.get_base_url() invalidate_cache(url, self.ordernr, settings.SPEECHES_PER_PAGE)
def clear_cache(self): invalidate_cache(reverse("bundestagger-bundestag-list_sessions")) last_speech = self.speech_set.order_by("-ordernr")[0] url = last_speech.get_base_url() invalidate_cache_all_pages(url, last_speech.ordernr, settings.SPEECHES_PER_PAGE)