Opt-out of static cache clearing on deploy #117
timkelty
started this conversation in
Feature Requests & Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
By default, Craft Cloud runs
craft cloud/upfollowing deploys, which:craft up(migrations + project-config)Originally, static caches always needed to be purged, as
cdn.craft.cloudartifact URLs contain a build ID that changes on each deployment.With rewrites, you can avoid that entirely, so we should make cache clearing optional.
Additionally, by using ESIs, you may want to purge more selectively (e.g. just your layout's html
<head>contents), so you don't need to fully invalidate.You can control the behavior of
cloud/upvia events, but we plan on making this easier and more customizable in future releases:Beta Was this translation helpful? Give feedback.
All reactions