Readded purge_url_from_cache. Logging improvements