Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
With the new improved support for retrieving expired cache entries, it is counter-productive to delete those as soon as they expire.
This patch is a proof of concept on how this can be implemented. I'm not sure what is the best place to store such backend-specific per-bin settings using the new config/settings APIs.
Comment | File | Size | Author |
---|---|---|---|
#22 | 1944740-22.patch | 2.38 KB | Ankit.Gupta |
#20 | reroll_4-20.txt | 3.64 KB | immaculatexavier |
#20 | 1944740-20.patch | 2.38 KB | immaculatexavier |
#4 | garbage-collection-min-age-1944740-4.patch | 2.25 KB | JacobSanford |
Issue fork drupal-1944740
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
catchShould probably go in $settings. The cache backends can't have a dependency on the config API.
Small features like this are fine for 8.x assuming we're under thresholds so moving back for now, I'd also backport something like this for 9.x if it ends up getting in there eventually.
Comment #2
c960657 CreditAttribution: c960657 commentedComment #3
olli CreditAttribution: olli commentedDo we have some convention for settings? I found only one with "cache.page.omit_vary_cookie".
Can we call settings() here or should that get injected too?
Should that default 60 be also a setting?
Comment #4
JacobSanfordRe-rolled patch
Comment #18
andypostComment #20
immaculatexavier CreditAttribution: immaculatexavier as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedRerolled patch against #4.
Comment #22
Ankit.Gupta CreditAttribution: Ankit.Gupta at Dotsquares Ltd. commentedRerolled patch #20 with Drupal 10.1.x