Incorrect handling of invalid cache items in apcu backend

Created on 22 May 2014, about 10 years ago
Updated 30 January 2023, over 1 year ago

ApcuBackend::set() passes the $expire (timestamp) directly as the $ttl (duration) to apc_store().

ApcuBackend::invalidate*() does not properly preserve cached data, tags and checksums by using ::set() instead of apc_store().

ApcuBackend::$tagCache is not effective because entries are stored with the tags prefix but read without it.

PhpBackend::deleteTags() does not remove invalid items #2267643: Cache\PhpBackend::deleteTags() does not remove invalid items

🐛 Bug report
Status

Needs work

Version

9.5

Component
Cache 

Last updated 1 day ago

Created by

🇫🇮Finland olli

Live updates comments and jobs are added and updated live.
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.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.69.0 2024