Events

New in version 1.0.0: Feature #338 – Introduce events

During cache warmup, some PSR-14 events are dispatched. Events can be used to step in the cache warmup lifecycle and affect its crawling behavior in various ways.

The following events are currently dispatched:

BeforeCacheWarmupEvent

This event is dispatched right before cache warmup is triggered via EliasHaeussler\CacheWarmup\CacheWarmer::run. It allows to add additional sitemaps and URLs to the cache warmer or modify the crawling behavior in other ways.

AfterCacheWarmupEvent

Once cache warmup is finished, this event is dispatched. It provides the cache warmup result together with the original instance of EliasHaeussler\CacheWarmup\CacheWarmer and the used crawler.

See also

View the sources on GitHub: