U4-4696 - Macro personalized cache with custom membership provider not working

Created by Elias Errecart 14 Apr 2014, 23:57:02 Updated by Elias Errecart 24 Apr 2014, 02:30:12

When using a custom membership provider, macro with "Cache Personalized enabled" is not working: the macro result is never added to the cache collection, and the macro is processed in each request.

This happens when on umbraco.AddMacroResultToCache() line 499 ( tag: release-6.1.5) the Member.GetCurrentMember() method returns null since you are on a custom provider, the helper can't return a Member entity.

found on v6.1.x and v4.x

I have the fix for v6.1.5, pull request : https://github.com/umbraco/Umbraco-CMS/pull/353


Elias Errecart 15 Apr 2014, 01:39:53

pull: https://github.com/umbraco/Umbraco-CMS/pull/353

Shannon Deminick 24 Apr 2014, 02:10:25

I've merged this in and fixed it up to work with any custom provider regardless of the ProviderUserKey type. See rev: e10e04aabfccfdba6bd7cf469fd7d719319888af

Elias Errecart 24 Apr 2014, 02:30:12

Nice Shannon, thank you for the improvement!

Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.0, 4.10.1, 6.1.5

Due in version: 6.2.0, 7.1.2


Story Points: