Skip to content

Stop on failure 2.7.0+ ​

📝 Name: stopOnFailure · 🖥️ Option: --stop-on-failure

Cancel further cache warmup requests on failure.

INFO

This option only apply to stoppable crawlers. If the configured crawler does not implement the required interface, a warning is shown.

Example ​

Enable the flag to immediately stop crawling on failure.

bash
./cache-warmup.phar --stop-on-failure
json
{
    "stopOnFailure": true
}
php
use EliasHaeussler\CacheWarmup;

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

    return $config;
};
yaml
stopOnFailure: true
bash
CACHE_WARMUP_STOP_ON_FAILURE=1

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