SaaS CMS has officially launched! Learn more now.

Is CategoryRepository cached?


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

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


Nov 22, 2021 21:24

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

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.