Invalidate node cache after changing global settings

Created on 5 October 2024, 3 months ago

Problem/Motivation

When changing the premium message or when changing the teaser view mode on /admin/config/content/nopremium, the changes don't have effect until caches are cleared manually.

Steps to reproduce

  1. Create a premium node.
  2. As an user who may not view the full content, visit the premium node. The message "The full content of this page is available to premium users only." gets displayed.
  3. Now as an admin user, change the premium message on /admin/config/content/nopremium, for example change the message to "This is premium content."
  4. As an user who may not view the full content, visit the premium node again. The old message "The full content of this page is available to premium users only." still gets displayed.

Only after clearing caches, or when the premium node was not visited before by users who may not view the full content, the new message is displayed.

Proposed resolution

Invalidate the node cache when saving the global Node option premium settings on /admin/config/content/nopremium.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇳🇱Netherlands megachriz

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