Skip to content

Feature: CLI cache warmup after cache:flush / cache:clean (optional HTTP GET) #40636

@Genaker

Description

@Genaker

Preconditions

Magento 2.4+ with Magento_Backend enabled.

Steps

  1. Configure optional warmup URLs under Stores > Configuration > Advanced > Developer > CLI Cache Warmup (or leave empty to use storefront base URL).
  2. Run bin/magento cache:flush --warmup or bin/magento cache:clean --warmup, or standalone bin/magento cache:warmup.

Expected

After flush/clean, CLI can optionally perform HTTP GET requests to warm full-page cache (FPC) without requiring a third-party module or preferences.

Actual (before change)

No core option; merchants rely on custom code or external tools to warm caches after cache:flush / cache:clean.

Suggested approach

Implement in Magento_Backend:

  • --warmup / -w on cache:flush and cache:clean
  • New cache:warmup command
  • Admin configuration for URLs and HTTP timeout

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions