EasyCorp / easy-deploy-bundle

The easiest way to deploy your Symfony applications
https://easycorp.io/EasyDeploy
MIT License
471 stars 103 forks source link

Reset opcache via CLI #1

Open Seldaek opened 7 years ago

Seldaek commented 7 years ago

https://github.com/gordalina/cachetool/ actually lets you reset opcaches from CLI at least if you use FCGI/FPM. It does this by creating a temp file and then instructing the FCGI socket to execute that file, so it all happens without public URL. It would be good to somehow integrate it as an option, maybe if the binary is available globally it could be used, or require it as a dependency?

javiereguiluz commented 7 years ago

Thanks for the proposal. I saw the tool when looking for solutions to clear the OPcache from the CLI. Sadly, as you said, it's only for people using FPM. But yes, I'm going to look how we can integrate that. Thanks!

Seldaek commented 7 years ago

Yeah it probably can't be the only solution you support if you care about apache, but it's a good way to simplify things for FPM users.