arnested / drupal-mode

Advanced Emacs minor mode for Drupal development
https://melpa.org/#/drupal-mode
GNU General Public License v3.0
32 stars 14 forks source link

Async cache clear #60

Closed kostajh closed 9 years ago

kostajh commented 9 years ago

Hi @arnested,

how do you feel about using async-shell-command for drupal-drush-cache-clear () instead of call-process? On some sites I work on, clearing the cache can take upwards of a minute, which is a long time for Emacs to be locked up.

Kosta

arnested commented 9 years ago

I like it. And I might even have some half finished code for it somewhere.

Will look into it later today or tomorrow.

arnested commented 9 years ago

I implemented something now.

The cache clear is run in the background (asynchronous).

If you have async.el installed you will even get feedback when til cache clearing is done.

kostajh commented 9 years ago

great, thank you!