Handle quant_purger with empty blocklist item

Created on 30 July 2023, over 1 year ago
Updated 31 July 2023, over 1 year ago

Problem/Motivation

If there is an empty block item, then the getAcceptedCacheTags doesn't work because it uses the empty item as one of the block items which ends up filtering out everything in the list.

Steps to reproduce

  1. Install and config quant, quant_api, quant_purger, purge, purge_ui
  2. Go to /admin/config/development/performance/purge
  3. Click Configure under Purge Quant
  4. Click Add tag blocklist
  5. Leave item empty and save
  6. Run seed
  7. Look in the purge_queuer_quant db table
  8. Result: table is empty
  9. Expected result: table has data based on the seed

Proposed resolution

Ignore empty items.

Remaining tasks

  1. Update code
  2. Review and test
  3. Commit :)

User interface changes

API changes

Data model changes

πŸ› Bug report
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