Trash doesn't handle the static entity cache properly when switching contexts

Created on 2 December 2025, 26 days ago

Problem/Motivation

When an entity is soft-deleted, calling $storage->getLatestRevisionId() with the ignore trash context then calling it again with the active context returns stale (cached) and incorrect results.

🐛 Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

🇷🇴Romania amateescu

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.

No activities found.

Production build 0.71.5 2024