URLs 0.1.0+ ​
📝 Name: urls
· 🖥️ Option: -u
, --urls
· 📚 Multiple values allowed
Additional URLs to be warmed up.
Example ​
Provide an additional URL and make sure to include the URL protocol, otherwise the URL cannot be resolved.
bash
./cache-warmup.phar -u "https://www.example.org/" -u "https://www.example.org/de/"
./cache-warmup.phar --urls "https://www.example.org/" --urls "https://www.example.org/de/"
json
{
"urls": [
"https://www.example.org/",
"https://www.example.org/de/"
]
}
php
use EliasHaeussler\CacheWarmup;
return static function (CacheWarmup\Config\CacheWarmupConfig $config) {
$config->addUrl(
new CacheWarmup\Sitemap\Url('https://www.example.org/'),
);
$config->addUrl(
new CacheWarmup\Sitemap\Url('https://www.example.org/de/'),
);
return $config;
};
yaml
urls:
- https://www.example.org/
- https://www.example.org/de/
bash
CACHE_WARMUP_URLS="https://www.example.org/, https://www.example.org/de/"