when is the right time to call `zsc cdn purge` from zerops.yml?
it seems like it would be in
setup.buildCommands, but i think the old container is still running at that point, so if there's a busy web service that's still being hit before the new deployment rolls out, it seems like that could lead to stale CDN assets.
runtime.prepareCommands perhaps? runtime.initCommands?4 Replies
run.initCommands, probably along https://docs.zerops.io/references/zsc#execonce so it only does on one containeryeah, perfect, makes sense!
thanks 😄
if you haven't seen

yeah i glanced over it but it's more useful than i thought!