November Happy Hour will be moved to Thursday December 5th.

Is CategoryRepository cached?

Vote:
 

Just a quick question - does the class CategoryRepository cache it's contents? Specifically the Get(id) method here: 

 https://world.optimizely.com/csclasslibraries/cms/EPiServer.DataAbstraction.CategoryRepository?version=8 

Asking because we have a developer calling Get(id) inside a foreach and I'm concerned about any performance effects.

Thanks

#267194
Nov 22, 2021 21:24
Vote:
 

Yes, in default implementation (EPiServer.DataAbstraction.Internal.DefaultCategoryRepository), that method is cached.

#267227
Edited, Nov 23, 2021 8:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.