Breakage after 4000 pages

Hello, can you please tell me, my documentation has grown to 4000+ pages, after that, instead of a build of hugo, which took about 20 minutes, it looks like it is cached and starts in 10-15 seconds with broken menus. How can this be solved?

P.S. I have not used “partialCached”.

Screen

The problem was in the “docsy” theme used, it turns on caching for a certain number of pages.