Hi,

Thanks for Masquerade! It really helps with testing different user roles.

I've added Masquerade block and I've noticed that it's not updated properly. I am guessing this is caused by the fact that Drupal automatically cache block per role when block caching is turned on. Installing Block Cache Alter and disable caching for Masquerade block seems to fix the problem. This probably should be added to the document.

Comments

deviantintegral’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Component: Documentation » Code
Category: feature » bug
Status: Active » Needs review
StatusFileSize
new1.57 KB

I've attached a patch which sets the block cache to be per user, and not the default of per role. It also clears the block cache whenever the Masquerade settings are changed, so that updates to the permissions or quick switch lists are shown immediately.

Per-role caching would have caused problems with #290313: Limit to relative users down the line as well.

deviantintegral’s picture

Status: Needs review » Fixed
StatusFileSize
new1.07 KB

Here is a slightly rerolled patch which I'll be committing in a moment.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.