Add path and tag allow lists to Quant purger

Created on 3 January 2024, 11 months ago
Updated 20 January 2024, 10 months ago

Problem/Motivation

In 1.5.2, the Quant purger module had a bunch of updates including performance-related improvements. One was to add a bunch of common cachetags to the tag blocklist such as config:*. The side effect of this is that there are use cases that would trigger content to be queued for re-seeding in 1.5.1 that don't happen in 1.5.2. One example is if you have content in a menu and change something in the menu, the content associated with that menu won't be queued for re-seeding.

Steps to reproduce

  • Install and configure Drupal 10 using the Umami profile
  • Install and configure Quant 1.5.2 or later and enable the quant_purger module
  • Seed all content to Quant and check the dashboard to make sure everything is there
  • Edit the main Umami menu and add one of the recipe pages to the menu
  • Edit that recipe page and make a small change
  • Check the cachetags with drush sqlq "select url, tags from purge_queuer_quant"
  • You should not see the umami menu in the tags (config:block.block.umami_main_menu)
  • Edit the menu and change the menu link title
  • Run drush quant:run-queue
  • Check the dashboard and you won't see the menu change reflected on the recipe page
  • Edit the quant purger configuration in the purge UI and remove config:*
  • Repeat the above and you will see the cachetag in the quant purger table and changing the menu link title will show up in the Quant content after running the queue

Proposed resolution

Add path and tag allow lists that override the block lists to provide more granular control.

Remaining tasks

  • Update code
  • Review and test
  • Commit :)

User interface changes

There will be new options in the purge UI for quant purger configuration.

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

Production build 0.71.5 2024