-
Notifications
You must be signed in to change notification settings - Fork 63
Cache by member #96
Comments
@soreng do you have a suggestion how to solve cache by member for LeBlender grid editors? |
@bjarnef I would suggest not caching the content for this. Maybe you can use output caching in the page-controller, to get a similar result |
@soreng I tried with
However inside the grid editor I have some condition to render different actions from a SurfaceController, which returns another view e.g.
When I use
|
@soreng would it be possible to make this similar to |
I dont see why it could’nt just use the method from core directly - but keep in mind LeBlender is build Against umbraco 7.4. But back to the question. It requires the value of cacheByMember to be true somehow. My concern on this was that it could add alot stuff to memory if we are not carefull. It could be done via an attribute on the controller maybe? |
@soreng it seems this extension class haven't changed much the last couple of years https://github.com/umbraco/Umbraco-CMS/commits/7ee510ed386495120666a78c61497f58ff05de8f/src/Umbraco.Web/HtmlHelperRenderExtensions.cs When the core CachedPartial allowing caching by member and macros has this feature, would it make sense to allow this for LeBlender grid editors as well? Furthermore the
I have tried added the
and then I have this.
I tried caching by member type, but it seems to create these SQL queries each time, so not sure how to cache an grid editor or partial by member group or member group? |
Hi @bjarnef For the caching to work, it should be implemented as you suggest - as it is in macros. I'm getting ideas for improvements, but they may need a v2 to make them work. |
At the moment the caching of the LeBlender grid editors is by page, but it would be useful to cache by member as when using the
CachedPartial
e.g. when you present specific content inside the editor depending on the member type who is logged in.https://24days.in/umbraco-cms/2017/the-one-with-performance/performance-boosts-for-umbraco/
https://our.umbraco.com/projects/backoffice-extensions/leblender/general-discussion/92538-caching-of-user-specific-content-in-leblender
The text was updated successfully, but these errors were encountered: