Limit 0.1.0+
📝 Name: limit
· 🖥️ Option: -l
, --limit
· 🐝 Default: 0
Limit the number of URLs to be processed.
Example
Pass any positive number to limit the number of processed URLs.
bash
./cache-warmup.phar -l 250
./cache-warmup.phar --limit 250
json
{
"limit": 250
}
php
use EliasHaeussler\CacheWarmup;
return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
$config->setLimit(250);
return $config;
};
yaml
limit: 250
bash
CACHE_WARMUP_LIMIT=250
Disable limit
By default, no limit is defined. This can be explicitly achieved by passing 0
as configuration value.
bash
./cache-warmup.phar -l 0
./cache-warmup.phar --limit 0
json
{
"limit": 0
}
php
use EliasHaeussler\CacheWarmup;
return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
$config->disableLimit();
return $config;
};
yaml
limit: 0
bash
CACHE_WARMUP_LIMIT=0