Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspicion: poor performance loading blog posts on frontend #518

Open
robbieaverill opened this issue Mar 20, 2018 · 3 comments
Open

Suspicion: poor performance loading blog posts on frontend #518

robbieaverill opened this issue Mar 20, 2018 · 3 comments

Comments

@robbieaverill
Copy link
Contributor

I've set up a vanilla CWP 2.x-dev site with blog, comments, comment notifications etc (the silverstripe/recipe-blog dependencies), added a blog with two blog posts and three comments on one of the posts, a couple of images inline in the content as well as featured images.

Loading the homepage for me takes around 500ms.

Loading the blog takes around 1.4s.

I haven't looked into this at all, but I suspect a little bit of profiling might surface some areas that could be tweaked to reduce this load time a little.

@robbieaverill
Copy link
Contributor Author

Here's my debugbar profile of a simple blog with two posts in it:
image

@camfindlay
Copy link
Contributor

camfindlay commented Jul 11, 2019

Can confirm this is an issue. Also affects the rss feed generation hugely.

@matt-in-a-hat
Copy link

In my use case the slowness seemed to be due to DBHTMLText parsing shortcodes. I could speed the page up considerably by disabling this within BlogPost::Excerpt like so

$content->setOptions(['shortcodes' => false]);

However, for any posts with shortcodes like embedded videos, it would make the auto summary look bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants