def run(self, urls, **kwargs): pr = PurgeRequest(urls=urls) result, num_urls = pr.purge() return num_urls
def purge_request_handler(sender, **kwargs): pr = PurgeRequest() pr.add(sender) result = pr.purge() return result