Problem/Motivation

When a new registrant is created, the cache tags of event series and event instances are not invalidated. This means that if a event series or instance page is showing the capacity, it will not be updated when a new registration is made.

By default, EntityBase::invalidateTagsOnSave() only invalidates list cache tags when a new entity is created, and only invalidates the other cache tags when an existing entity is updated. But in the case of Registrant entities we should also invalidate them when a new registrant is created.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pfrenssen created an issue. See original summary.

pfrenssen’s picture

Title: Counters not updated when a new registrant is created » Capacity not updated when a new registrant is created
pfrenssen’s picture

Status: Active » Needs review

  • pfrenssen committed bfadffce on 2.0.x
    Issue #3478802 by pfrenssen: Capacity not updated when a new registrant...
pfrenssen’s picture

Status: Needs review » Fixed

  • pfrenssen committed bfadffce on 3.0.x
    Issue #3478802 by pfrenssen: Capacity not updated when a new registrant...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.