#NEWLINE# def clear_webcache( movie ) : #NEWLINE# #INDENT# cached_session = APP . setting ( 'WEBCACHE' ) #NEWLINE# for provider_path in APP . setting ( 'MOVIEDATA_PROVIDERS' ) : #NEWLINE# #INDENT# provider_module = import_module ( provider_path ) #NEWLINE# provider = provider_module . Provider ( ) #NEWLINE# url = provider . get_url ( movie ) #NEWLINE# if cached_session . cache . has_url ( url ) : #NEWLINE# #INDENT# cached_session . cache . delete_url ( url ) #NEWLINE# APP . output ( ( 'Deleted url from webcache: %s' % url ) )