Invalidate assets in folder and subfolders
All assets with the path prefix in Amazon Cloudfront CDN
are invalidated in its cache.
Also, for non-prelease version paths string is updated to
remove nontemplate argument.
@@ -387,11 +387,11 @@ def upload_docs():
if V(CONFIG.version).is_prerelease:
run(sync_cmd % "dev")
- run(invalidate_cmd % "/en/dev")
+ run(invalidate_cmd % '"/en/dev*"')
else:
run(sync_cmd % CONFIG.version)
run(sync_cmd % "latest")
- paths = "/en/latest /versions.json" % CONFIG.version
+ paths = '"/en/latest*" /versions.json'
run(invalidate_cmd % paths)
cd("..")
