- Issue created by @weekbeforenext
- πΊπΈUnited States weekbeforenext Asheville, NC
Discovered another dependency which is Memcached.
- Status changed to Closed: won't fix
over 1 year ago 8:35pm 1 August 2023 - πΊπΈUnited States weekbeforenext Asheville, NC
The patch in π Transaction support for cache (tags) invalidation Needs review seems to have resolved this issue.
- πΊπΈUnited States Jody Lynn
Thanks @weekbeforenext. We have been dealing with a similar bug, possibly the same thing.
We have only been able to reproduce it on our live site where we can't clear the cache to confirm it. It did sound like it was possible that your observation that disabling diff was unrelated and just that disabling anything cleared the cache.
For us the issue is intermittent, consistent with a race condition. Sometimes an editor saves a node as published revision, but then is redirected to the 'latest' tab as if there were a draft revision. The 'latest' tab then gives a 403 as there is no draft revision, and the revisions tab shows that the latest published revision is not the 'current' revision as you showed. The changes made are not published, and when the editor tries to edit the page again they can get the error that 'the content has been edited by another user' as well.
The timing of this bug started happening for us at the same time that we were adding a bunch of additional logic on node saves to customize which cache tags were clearing depending on which fields were modified. So perhaps adding in more logic or more cache tags to invalidate led to to this race condition becoming more likely to fail.
We are not able to reproduce the bug outside prod, but we'll follow your advice and try that patch, as a race condition related to cache tags sounds about right.