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