Closed (outdated)
Project:
Drupal core
Version:
11.x-dev
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Apr 2015 at 21:48 UTC
Updated:
3 Sep 2025 at 18:55 UTC
Jump to comment: Most recent
Comments
Comment #1
effulgentsia commentedI opened this issue per #2459819-26: Remove CacheableInterface (and no longer let block plugins implement it), but so far I'm -1 on it. Or rather, my current opinion on the "decide if" is "no".
I think it violates separation of concerns for the plugin to alter what BVB generates, since per the issue summary, multiple actors participate in that generation. I think even using such an alter method to unset #cache['keys'] would be a violation of that, since the plugin doesn't know the cache strategy employed by the callers. For example, what if all cacheable blocks were retrieved with a cache_get_multiple()?
Comment #15
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #16
smustgrave commentedSince @effulgentsia who opened this was a -1 and there's been no follow up going to close this one out.
If still valid please re-open Thanks!