Pantheon Community

Is there a method to trigger cache clearing remotely?

Hi Everyone,

I tried reviewing the documentation but couldn’t find anything about this.

We use OpsGenie for alerts and incidence management. They have a way to create actions to perform tasks like rebooting a server in response to an alert. I am wondering if there’s a way we can trigger cache clearing on our live environment from outside the dashboard?

Thank you!

Joe

1 Like

Hey @joe_mercyhome the easiest way to do this is to install Terminus and use the cache clear command available there. Plenty of folks are using this strategy in CircleCI and similar setups, so as long as you can run PHP and install terminus there, that’s the way I would go.

1 Like

Thanks for the answer, @doug_pantheon ! We’ve used the clear cache command through Terminus before but I’m not too familiar with CircleCI. I’ll check that out.