code: def send_task(self, request, response):
          
  
          # TODO is this too messy?
          from bettercache.tasks import GeneratePage
          try:
              GeneratePage.apply_async((strip_wsgi(request),))
          except:
              logger.error("failed to send celery task")
          self.set_cache(request, response)
docs: send off a celery task for the current page and recache