Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Warmer

Security covered
View on drupal.org

This module provides all the necessary infrastructure to orchestrate your cache warming processes.

You can warm the cache of your critical entities (and more!) right after you deploy to production. Additionally cron will keep them warm for you.

All these operations are executed asynchronously to avoid impacting the users.

📹 Watch the video tutorial 📹

@Warmer plugins

By itself the module does nothing. It needs other modules (contrib or custom) to provide @Warmer plugins. Each warmer plugin is in charge of warming a different type of items. You could have a warmer (a plugin) dedicated to the entity cache, another one for the JSON:API normalizations (via JSON:API Boost), another one that hits URLs to warm the CDN cache, etc.

A warmer plugin consists of:

  • A settings form.
  • A method to build a list of item IDs to warm. This works in batches to avoid overloading the system. Ex: entity ID, full URLs, …
  • A method to trigger the warming operation. Ex: entity load, an external HTTP request, …

CDN Warmer

This module also provides a sub-module that includes a @Warmer for the page cache, Varnish, and edge cache, as it is a very common task. Warmer will make HTTP requests to the configured URLs to keep these caches warm.

Configure it with a list of URLs to keep warm. You can use any URL format like: entity:user/1, /node/1, https://example.org/foo, …

Alternatively, you can collect the URLs to warm from a Sitemap. Configure the warmer with the sitemap URL and (optionally) filter out the URLs with low priority.

Entity Warmer

This module also provides a sub-module that includes a @Warmer for the entity cache, as it is a very common task. This is a great example to develop your own warmers!

Schedule cache warming

You can manually enqueue the cache warming operations using the UI. Additionally hook_cron will schedule the cache warming with a configurable frequency.

Warm using Drush

One of the primary uses of this module is to warm your caches as part of the deployment script of your site. You can use Drush to do that.

List all the available warmers with the drush warmer:list command.

Then warm the caches by selecting the warmers to run:

drush warmer:enqueue entity,resource,custom --run-queue

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.14 Stable Oct 26, 2024