Search code examples
asp.netperformancecachingepiserver

EpiServer startup slow


I'm developing on a big EpiServer site. When the site starts it takes several minutes and you can see what happens in the VS.NET diagnostic tools. There are a lot of database calls (2400+). E.g. netPageDefinitionGet, netPageDefinitionList.

From what I understand the results of this will be inserted into the EpiServer cache. The site performs well when started.

This isn't really a problem when running the site, it's a problem when developing. Since this delay happens every time a developer starts the debugger, this causes lot's of wait time for all developers..

Any suggestions? Is it possible to keep the cache e.g. out of process between debugging sessions?


Solution

  • 360 content types is fairly high, so it might be that model synchronization is taking a long time.

    You could try setting EnableModelSyncCommit to false in config to see if that speeds things up.

    Note however that content types will no longer automatically be updated when content types are changed in code.