Z
Zerops•2mo ago
wrl

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
Aleš
Aleš•2mo ago
run.initCommands, probably along https://docs.zerops.io/references/zsc#execonce so it only does on one container
wrl
wrlOP•2mo ago
yeah, perfect, makes sense! thanks 😄
Aleš
Aleš•2mo ago
if you haven't seen
No description
wrl
wrlOP•2mo ago
yeah i glanced over it but it's more useful than i thought!

Did you find this page helpful?