Allow others to dynamically alter the base urls used to purge a file

Created on 8 November 2023, about 1 year ago

Problem/Motivation

Currently, the purge_file module provides static configuration to specify additional base urls to use when purging a file. This is not ideal when site may dynamically define other urls that should be purged. Example: when using the Domain β†’ module, custom subdomains that are user defined in each environment.

Proposed resolution

Invoke an alter hook for the base urls to allow others to dynamically add more base urls to purge.

API changes

A new alter hook for the base urls.

Data model changes

None.

✨ Feature request
Status

Needs review

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States recrit

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @recrit
  • @recrit opened merge request.
  • Status changed to Needs review about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States recrit

    I create the MR 7 that adds the new hook "hook_purge_file_base_urls_alter". Attached is a static patch to use in composer builds.

Production build 0.71.5 2024