Problem/Motivation

\Drupal\Core\Cache\Cache::keyFromQuery is an old weird method for cache key generation from the forum migration that has been replaced by better methods. No uses have existed in core since 2015 and the only use in contrib never got a release so its a solid cleanup.

Steps to reproduce

Its just removing cruft.

Proposed resolution

Deprecate and remove.

Remaining tasks

User interface changes

n/a

API changes

removes dead cache class method so technically.

Data model changes

n/a

Release notes snippet

tbd

Comments

neclimdul created an issue. See original summary.

neclimdul’s picture

Status: Active » Needs review
StatusFileSize
new1.07 KB
new2.39 KB

boom, easy patch. Going bold since this is just some really old dead code and patches for a 9.5 removal?

neclimdul’s picture

StatusFileSize
new1.25 KB

right, clean up the use. good catch testbot.

spokje’s picture

Status: Needs review » Reviewed & tested by the community

- Rationale for deprecating/removing explained in IS.
- Code changes make sense.
- TestBot is green.
- Code changes and green TestBot show that the method isn't used in core.

The only thing I'm wondering about is if were still on time to do this deprecation/removal in 9.5/10.0 or did we miss the window and this has to be 10.0/10.1.

RTBC for me and we'll await the verdict of the core committers on my last remark,

catch’s picture

Version: 9.5.x-dev » 10.1.x-dev
Status: Reviewed & tested by the community » Needs work

Much as I'd love to be rid of it, this needs to be 10.1 for removal in 11.0.

neclimdul’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new2.28 KB

Figured but wanted to try. Here's the deprecation for 10.1. Removal will have to wait.

longwave’s picture

Status: Needs review » Needs work
Issue tags: +Needs change record

The @see references should point to a change record, not an issue.

spokje’s picture

Issue tags: -Needs change record

Added draft CR

spokje’s picture

Status: Needs work » Needs review
StatusFileSize
new2.28 KB
new1.58 KB

Updated deprecation message to point to CR instead of this issue.

  • catch committed afc9dc2 on 10.1.x
    Issue #3308507 by neclimdul, Spokje, longwave: Remove Cache::...
catch’s picture

Status: Needs review » Fixed

Argghh I got confused about the issue status while reviewing the patch again and committed this from needs review. However since it was already RTBC before and the only changes have been version numbers and where the link points to.... going to leave it in.

spokje’s picture

Works for me ;)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.