After running into a number of problems I noticed after changing the permission of a node, the access restriction does not update without flushing the cache as well
This problem does not occur with the D7 version of node access
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2962423-3.patch | 634 bytes | weseze |
Comments
Comment #2
mrpauldriver commentedDigging deeper, it seems that clearing either 'routing and links cache' or the 'views cache', fixes the issue. I don't know anything about routing and links, so any pointers to help my understanding would be appreciated.
Why the 'views cache' does has the effect when viewing a simple node with no views - I can not fathom!
I can foresee problems for site editors making changes to node access restrictions and failing to understand why they have not taken effect.
Is there something I can do so that permission changes take effect immediately?
----
EDIT
Should clarify that cache clearing seems necessary when granting/revoke access to a role. However clearing caches is not necessary for grants to individual users
Comment #3
weseze commentedI experienced the same problem with roles. Although it did not always happen...
The attached patch fixes it for me.
Comment #4
elusivemind commentedI have added this to the next dev version which will be pushed as soon as the security audit is done.
Comment #6
elusivemind commentedIn 8.x-1.x dev branch now
Comment #7
alisonThis fix was included in the 8.x-1.0-beta3 release. Thanks all!
Comment #8
alison