Has anyone experienced a slow initial load of the pagebuilder?

Has anyone experienced a slow initial load of pagebuilder page? It seems that the first page takes a longer time to load. The request that is slow is the one that loads the page (starting with /cmsctx/pm). It sometimes takes 10 seconds or longer for the initial load.


Environment

  • Xperience by Kentico version: 31.3.2

  • .NET version: 10

  • Execution environment: Private cloud (Azure)

Tags:
Kentico Page Builder

Answers

The /cmsctx/... request is the full page render inside the Page Builder iframe, and it runs in preview mode where data caching is disabled by design across the entire request. Not just widgets, but also your layout, navigation, footer, and anything else that normally benefits from caching on the live site (docs). That means every IContentRetriever and IProgressiveCache call hits the DB cold, so heavy or unoptimized queries anywhere in the page stack up fast. I'd recommend plugging in Kentico's MiniProfiler integration to pinpoint exactly which queries are slow.

@Milan

I know IContentRetriever is not cached on preview...but I think your own IProgressiveCache does still cache content even on preview, unless you tell it not to...but I'd have to check...

Yeah I know about the IContentRetriever not caching in preview mode, but the weird thing is that after the first load it goes a lot faster (although all the content retriever calls are still happening because of the preview mode). I was thinking that something else was causing the rendering to be slower.

To response this discussion, you have to login first.