Problem/Motivation

When the Mautic segment of a visitor changes (and the segment cookie value changes), Drupal should:

  • Serve a page variant that matches the new cookie value.
  • Update block visibility accordingly.
  • Do this without requiring manual cache clears.
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

abhisekmazumdar created an issue. See original summary.

abhisekmazumdar’s picture

Assigned: abhisekmazumdar » Unassigned
Status: Active » Needs review

The pipeline error will be resolved when #3571975: Add optional integration with Mautic API module for dynamic segment fetching gets merged.

Other than that, everything is ready for review.

abhisekmazumdar’s picture

I update the logic for the page catching as suggested by @l_vandamme.
Also yes the CI is green now.

  • 49cb6c37 committed on 1.0.x
    feat: #3573754 Make Drupal page cache respect Mautic segment cookie
    
    By...
l_vandamme’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

l_vandamme’s picture

Status: Fixed » Closed (fixed)