本地文件更新时自动清除CloudFlare的缓存。
cfwatch的Python项目详细描述
本地文件更新时自动清除CloudFlare的缓存。
这对于通过CloudFlare导出文件目录非常有用。如果 文件已更新,cfwatch将自动清除 CloudFlare上的相应URL。
使用cfwatch,您将不再需要添加破坏缓存的查询 字符串和直接链接将始终有效。
用法
$ pip install cfwatch $ cfwatch --help usage: cfwatch.py [-h] [-l LOG] email token zone prefix [dir] Purges CloudFlare on local file change. positional arguments: email CloudFlare login email (e.g. user@example.com) token CloudFlare API key (e.g. c2547eb745079dac9320b638f5e225cf483cc5cfdda41) zone CloudFlare zone (e.g. example.com) prefix CloudFlare path prefix (e.g. http://example.com/) dir directory to watch, i.e. file.txt this directory is http://example.com/file.txt optional arguments: -h, --help show this help message and exit -l LOG, --log LOG log file