I wonder if there is a way to trigger a build with cached clear other than the button in the app.
I’d like to run a request to a webhook everyhour, or via a link so we can manually refresh the cash. Maybe there is an environment variable I am not aware of?
There isn’t a webhook for it, but you should be able to using our API. I recommend checking the dev tools when you click that deploy button and you can see the API call that our app makes to trigger a build with clear cache.
As @futuregerald mentioned, there is no webhook but there is an API endpoint for it. Perhaps you could set up a Lambda function that calls this API and then the build hook?
Could you tell me where I can get the authorization token? I can get it from dev tools when I click the deploy button, but I’m not sure how long it can be kept.
Could you clarify what exactly are you trying to use message for? From what I’m aware, only deploys from Git with a commit message get a message displayed in the UI.
In our setup - multiple API’s trigger builds (when external data changes and needs to be fetched in our jamstack) and therefor it would be very helpful to have that printed out within the Netlify deployment UI. Example: Triggered by Shopify
It’s actually been exactly like that when using build hooks, however it’s not possible to forcefully clear cache and that unfortunately needs to happen.
As far as I’m aware, this is not currently possible. But, we’re trying to confirm this with our engineers and would let you know as soon as we have more information.