Add tacjs config dependency on cached pages

Created on 26 March 2025, 25 days ago

Problem/Motivation

Currently, no tacjs config cache tag is added to the page cache metadata.

You need to clear Drupal cache to have tacjs config changes taken into account in cached pages.

Proposed resolution

Add this small piece of code to the page_attachments hook:

$renderer = Drupal::service('renderer');
$renderer->addCacheableDependency($page, $config);
📌 Task
Status

Active

Version

7.0

Component

Code

Created by

🇫🇷France mably

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