File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -371,10 +371,10 @@ of the project)."
371371 (if (and drupal-rootdir
372372 drupal-drush-program)
373373 (let ((root drupal-rootdir))
374- (with-temp-buffer
375- ( message " Clearing all caches... " )
376- ( call- process drupal-drush-program nil nil nil (concat " --root=" (expand-file-name root)) " cache-clear" " all" )
377- (message " Clearing all caches...done " )))
374+ (message " Clearing all caches... " )
375+ ( if ( fboundp 'async-start-process )
376+ (async-start- process " drush cache-clear all " drupal-drush-program '( lambda (process-object) ( message " Clearing all caches...done " )) (concat " --root=" (expand-file-name root)) " cache-clear" " all" )
377+ (call-process drupal-drush-program nil 0 nil ( concat " --root= " ( expand-file-name root)) " cache-clear " " all " )))
378378 (message " Can't clear caches. No DRUPAL_ROOT and/or no drush command. " )))
379379
380380(defun drupal-drush-php-eval ()
You can’t perform that action at this time.
0 commit comments