Needs work
Project:
Allowed Languages
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2018 at 13:50 UTC
Updated:
27 Oct 2020 at 02:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jurgenr commentedI've added a patch that rebuilds the render cache on user save.
Comment #3
jurgenr commentedComment #5
postovan dumitru commentedHi @jurgenr,
I wanted to ask you, why invalidate all the renderer cache? As far as I know, we could provide a custom cache tag, and then invalidate it in the user form submit function, how does that sound?
Comment #6
weseze commented@postovan: How would you add this custom cache tag in all places were it is relevant?
I think the form submit function would need to more selectively clear known cache tags so that for example the view at /admin/content/ gets invalidated.
Comment #7
postovan dumitru commented@weseze
Sorry for my extremely late response. As far as I remember, there is a hook altering the operations in the module. Defining a clearing functionality and adding this cache tag to entity operations might not be that hard. Then again I might be completely wrong and I'm open for any alternative suggestions.
Otherwise yeah, clearing just the render cache instead of all cache is the solution here, but I would rather avoid clearing render cache for elements unrelated to user data.
Comment #8
heddnI think the approach here in this patch is the better method. No interdiff as this is a different approach.
Comment #9
nterbogt commentedWhile I agree with the approach. This patch (8) did not actually fix the issue, and I can still reproduce it with the patch applied.
The Access response of allowed (cached per user or not) doesn't actually bubble up to the page level cache; so it's not reset.
Comment #10
nterbogt commentedA more extensive version of this change has been rolled into the 2.x-dev branch; which needs some user testing.