Events
New in version 1.0.0
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.
Note
The eliashaeussler/cache-warmup library also dispatches some events. Read more in the official documentation.
The following events are currently dispatched:
BeforeCacheWarmupEvent
This event is dispatched right before cache warmup is triggered
via
\Elias
. 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
\Elias
and the used crawler.