Всего сообщений:
30
Карма:
220
Присоединился:
11.12.2011
Страна:
United Kingdom
Hi all, I am working on a CategoryACL for 2.30 and its going really well, got it working more or less... I have one HUGE blocker atm, cacheManager is caching categoryNavigation globally... which isnt pretty poor, as I need it to cache locally. If there anything I can do in my plugin to sort out this issue? thanks
Всего сообщений:
16645
Карма:
156270
Присоединился:
22.10.2008
Страна:
Armenia
I think you should modify CatalogController (remove caching).
Всего сообщений:
30
Карма:
220
Присоединился:
11.12.2011
Страна:
United Kingdom
Yeah, thats possible, I just wanted to be able to do it all from the plugin to make it easier for people to use :( Can I build this change into the plugin, or is it a case of having to provider a new controller too?
Всего сообщений:
16645
Карма:
156270
Присоединился:
22.10.2008
Страна:
Armenia
Not sure that it's possible. Maybe the easiest way will be to add a setting (in the further releases) which will indicate whether category navigation models should be cached. And all you will need to do is simply disable it
Всего сообщений:
30
Карма:
220
Присоединился:
11.12.2011
Страна:
United Kingdom
yeah that would be great. I saw this in the controller: //TODO inject static cache manager using constructor this._cacheManager = EngineContext.Current.ContainerManager.Resolve<ICacheManager>("nop_cache_static"); that TODO would be a great one to sort out :)