/** * Since many operations can take quite a long time for large cache pools, * this might help ease the waiting time with a nice console progress bar. * * @return Zend_ProgressBar A fresh Zend_ProgressBar instance */ protected function _getProgressBar($min, $max) { $progressBar = new Zend_ProgressBar(new Zend_ProgressBar_Adapter_Console(), $min, $max); $progressBar->getAdapter()->setFinishAction(Zend_ProgressBar_Adapter_Console::FINISH_ACTION_CLEAR_LINE); return $progressBar; }