Skip to content

Progress bar 0.1.0+ ​

📝 Name: progress · 🖥️ Option: -p, --progress

Show a progress bar during cache warmup.

INFO

The progress bar is implicitly enabled when using a non-verbose formatter, e.g. json.

Compact style ​

With normal output verbosity, the progress bar is shown in compact style.

bash
./cache-warmup.phar -p
./cache-warmup.phar --progress
json
{
    "progress": true
}
php
use EliasHaeussler\CacheWarmup;

return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
    $config->enableProgressBar();

    return $config;
};
yaml
progress: true
bash
CACHE_WARMUP_PROGRESS=1

Verbose style ​

You can optionally use the progress bar in verbose style by increasing output verbosity with the --verbose command option.

bash
./cache-warmup.phar -p -v
./cache-warmup.phar --progress --verbose

Released under the GNU General Public License 3.0 (or later)