Let Block plugins require to set #cache on their render arrays

Created on 9 October 2015, over 9 years ago
Updated 22 March 2025, 14 days ago

Problem/Motivation

Similar to #2579941: Let Dynamic Page Cache warn developers when a controller's render array does not have #cache set we could force blocks to provide cache ability metadata.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

11.0 🔥

Component

block.module

Created by

🇩🇪Germany dawehner

Live updates comments and jobs are added and updated live.
  • Security improvements

    It makes Drupal less vulnerable to abuse or misuse. Note, this is the preferred tag, though the Security tag has a large body of issues tagged to it. Do NOT publicly disclose security vulnerabilities; contact the security team instead. Anyone (whether security team or not) can apply this tag to security improvements that do not directly present a vulnerability e.g. hardening an API to add filtering to reduce a common mistake in contributed modules.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024