Active
Project:
Drupal core
Version:
main
Component:
cache system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2014 at 18:14 UTC
Updated:
6 Apr 2026 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirI think that one effect of #918538: Decouple cache tags from cache bins will be that those drupal_static()'s can go, as it will be just part of the service instance of the shared cache tags service. That said, that issue has been turning in cycles for a long time now.
Comment #2
berdirI'm now doing that there, so closing this as duplicate.
Comment #3
olli commentedFound a @todo linking here.
This is what we currently have in WebTestBase::refreshVariables():
I think that the issue linked in #1 fixed only the first bullet in issue summary by replacing drupal_static()s with resetChecksums().
Comment #4
berdirFair enough :)
Comment #5
berdirActually, based on a discussion I just had in IRC with @WimLeers and @catch about #2501117: Add static caching for PermissionsHashGenerator::generate(), let's add this method to an optional inteface (CacheBackendResetInterface? )and check for that interface instead of is_callable().
Comment #6
wim leersYep, see #2501117-37: Add static caching for PermissionsHashGenerator::generate() for the rationale.
Comment #7
wim leersBetter title. Feel free to change.
Comment #10
fabianx commentedCache collectors need to call this as well.
Comment #22
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 #24
smustgrave commentedNot familiar enough with the cache system to say this should be closed so moving back.