gordalina / cachetool

CLI App and library to manage apc & opcache.
https://gordalina.github.io/cachetool
MIT License
1.62k stars 152 forks source link

DX: success response #246

Open staabm opened 4 months ago

staabm commented 4 months ago

running cachetool does not output anything on success. I think for DX purposes it would be great if we would at least get something like "cache successfully cleared" or similar.

that way we could easily differentiate whether the tool was running and doing its job, or something on the server is fishy and the entered command just died without any further notice.

IS:

$ php /www/www/cachetool81.phar stat:clear --fcgi=/var/run/php/php-fpm.sock
$ php /www/www/cachetool81.phar opcache:reset --fcgi=/var/run/php/php-fpm.sock
$

EXPECTED

$ php /www/www/cachetool81.phar stat:clear --fcgi=/var/run/php/php-fpm.sock
cache successfully cleared
$ php /www/www/cachetool81.phar opcache:reset --fcgi=/var/run/php/php-fpm.sock
cache successfully cleared
$
gordalina commented 4 months ago

Feel free to submit a pull request for this.