Stop using Drupal state to store a global variable within a request

Created on 21 February 2025, about 1 month ago

Problem/Motivation

PardotEventSubscriber uses Drupal state to store pardot.include_tracking variable within a request for particular user. It has a some drawbacks:

  1. It executes unnecessary database query on each request
  2. The value is calculated for a current user while Drupal state is shared between all users

Proposed resolution

Use a function to store that value statically instead.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇨🇾Cyprus alex.bukach

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024