alengo/alengo-cache-warmup-bundle

Cache Warmup Bundle

Maintainers

👁 alengodev

Package info

github.com/alengodev/alengoCacheWarmupBundle

Type:sulu-bundle

pkg:composer/alengo/alengo-cache-warmup-bundle

Statistics

Installs: 119

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.4 2026-02-02 18:35 UTC

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 2aeb40f1e853934f41ce2f0bee5b0f11f606c7c9

  • Alexander Huber-De Monte

sulusulucms

This package is auto-updated.

Last update: 2026-05-30 19:19:56 UTC


README

This bundle provides a cache warmup mechanism for each URL in your sitemap.xml of your webspace(s). It uses Symfony Messenger to handle the warmup process asynchronously.

Requirements

  • PHP 8.2
  • Symfony >=7.2

Install the bundle

Execute the following composer command

composer require alengo/alengo-cache-warmup-bundle

Enable the bundle

Enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

return [
 /* ... */
 Alengo\Bundle\AlengoCacheWarmupBundle\AlengoCacheWarmupBundle::class => ['all' => true],
];
bin/console do:sch:up --force

Configure the Bundle

config/packages/messages.yaml

framework:
 messenger:
 transports:
 async:
 dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
 options:
 queue_name: 'async'
 routing:
 'Alengo\Bundle\AlengoCacheWarmupBundle\Message\SitemapCacheWarmup': async

Configure the Cache Warmup

config/packages/alengo_cache_warmup.yaml

alengo_cache_warmup:
 enabled: true
 allowed_webspaces:
 - 'webspace1'
 - 'webspace2'
 notification: 'email' # 'email' or 'none'

.env variables to get an email notification when the cache warmup is done

 ADMIN_EMAIL=admin@sulu.rocks
 DEFAULT_SENDER_NAME="Sulu // Notify"
 DEFAULT_SENDER_MAIL=email@localhost

Be sure you have installed the Symfony Messenger and configured it properly.