[development] Deleting Cached Permissions
David Metzler
metzlerd at metzlerd.com
Sat Aug 25 01:05:09 UTC 2007
The permissions (user roles) are being altered temporarily. The
reasons are documented in the issue Ron has referenced.
Ron, it sounds like Moshe was suggesting that adding the reset
parameter to user_access *might* be looked on favorably as a
submitted patch to core. having control over a caching behavior
seems like a reasonable request with little downside. Given that its
a really small patch, you might try filing it and see if it gets some
attention.
I know you've been trying to come up with a resolution to this issue
for a long time. I applaud your patience :).
Good luck on this.
Dave
On Aug 24, 2007, at 5:36 AM, Earnie Boyd wrote:
>
>
> Quoting Ron Parker <sysop at scbbs.com>:
>
>> Then, could someone help me with some process or procedure by
>> which I could prevent user_access() from caching $perm or override
>> the results of this caching? Even if I turn Drupal caching off,
>> this function's caching of $perm still occurs, causing my module
>> problems where it shouldn't have them.
>>
>
> Have you considered that maybe cache_filter is the issue rather
> than user_accesses $perm? I don't understand why the cached
> permission of an authenticated user would interfere unless the
> permissions are changing for some reason.
>
> Earnie
More information about the development
mailing list