Skip to content

Commit

Permalink
增加缓存刷新
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed May 25, 2018
1 parent c7a8009 commit f21fbf4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,13 @@
print(info)
assert ret['key'] == key
assert ret['hash'] == qiniu.etag(localfile)

# 刷新七牛云文件缓存
cdn_manager = qiniu.CdnManager(q)
# 需要刷新的文件链接
urls = [
'http://p985car2i.bkt.clouddn.com/Minecraft-Mod-Language-Modpack.zip'
]
# 刷新链接
refresh_url_result = cdn_manager.refresh_urls(urls)
print(refresh_url_result)

0 comments on commit f21fbf4

Please sign in to comment.