Macro personalized cache with custom membership provider
Hello,
we're using umbraco v4 and we implemented a custom membership provider. Now we're trying to enable
macro personalized caching. After struggling through too many cache misses we
tried to debug Umbraco code involved in the operation. We saw that cache key generation
mechanism requires "Member" nodes for the current user, BUT in our
case this is not applicable. We are not creating ANY member node for
our front-end users, we're using our custom asp.net membership provider.
Right now, we're not able to see any
workaround to make personalized caching work togheter with our custom membership provider.
Could we make this stuff work somehow?
We really need to have caching because our portal is too slow when
performing callbacks since macros are being executed each time... and this is
really time consuming.
Hi Elias, at now I've no solution for this problem. It seems that the only way is to add a "parallel" member object in order to have personalized cache working.
Hi Matteo,thanks for the feedback.
I was able to get this working changing 2 line of code on one single class on the umb source, it seems to work ok, the fix apply for v6, as far i can see for v4 its almost the same fix.
If you want I can provide with the source modification. I haven't made a pull request to the umbraco source yet, but I will if i don't get any error.
Macro personalized cache with custom membership provider
Hello,
we're using umbraco v4 and we implemented a custom membership provider. Now we're trying to enable macro personalized caching. After struggling through too many cache misses we tried to debug Umbraco code involved in the operation. We saw that cache key generation mechanism requires "Member" nodes for the current user, BUT in our case this is not applicable. We are not creating ANY member node for our front-end users, we're using our custom asp.net membership provider.
Right now, we're not able to see any workaround to make personalized caching work togheter with our custom membership provider.
Could we make this stuff work somehow? We really need to have caching because our portal is too slow when performing callbacks since macros are being executed each time... and this is really time consuming.
Thank you!
Regards,
Matteo
Hi Matteo, i have the same issue on umb 6.1.5 did you get any workaround ?
BR
Elias.
Hi Elias, at now I've no solution for this problem. It seems that the only way is to add a "parallel" member object in order to have personalized cache working.
Maybe this link could be useful although it's for v 4.7: http://www.blogfodder.co.uk/2012/7/19/dealing-with-1000%E2%80%99s-of-members-in-umbraco-without-the-api-or-examine
Matteo
Hi Matteo,thanks for the feedback. I was able to get this working changing 2 line of code on one single class on the umb source, it seems to work ok, the fix apply for v6, as far i can see for v4 its almost the same fix.
If you want I can provide with the source modification. I haven't made a pull request to the umbraco source yet, but I will if i don't get any error.
Elias,
Ok it'd be great! thanks
Hi Matteo,
link to the umbraco.dll with the fix (for v4.11): https://drive.google.com/file/d/0B-KxMUPEc50kV0hyR09vRTJrNUk/edit?usp=sharing
link to the fork, in case you need to apply to another v4.x.x version: https://github.com/eerrecart/Umbraco-CMS/tree/4.11.7---ITask-updates
Elias
is working on a reply...