Slow site due to td-composer generating over 500 queries per page

Posted in: Newspaper
Post count: 3

Hello, my site is https://nulltx.com It has been acting slow for quite some time now and after adding the yoastseo plugin it was the straw that broke the camel’s back.

After doing some digging and installing Query Monitor, I was able to find out that td-composer generates over 500 queries per page!!! Most of the calls are update_meta_cache(), WP_Term_Query->get_terms(), and WP_Post::get_instance().

If anybody can help me figure out how to fix this I would really appreciate it.

Post count: 3

Also, wanted to mention as soon as I switch themes, all the problems go away. At this point I’m extremely unsatisfied with the design of your theme and the fact that it goes up to 600+ queries per page is just terrible design.

Post count: 3

I figured out the reason for the 600+ queries. I have another site using the same theme and it is getting under 200 queries per post page with a pretty custom design.

It ended up being the mega menu. I have many sections and categories, the theme was preloading all the items in the menus which was probably close to 400 posts combined. That put a huge strain on mysql which used up all of our CPUs.

Disabling preloading of the mega menu solved it:

1. Go to ThemePanel
2. Header -> Main Menu
3. Make sure under “Mega Menu Preloader” it is set to the default “No Preloading” option. Mine was set to “Optimized Preloading”

I’m still sitting at 285 queries for the homepage. Much better than the 600+ it was at earlier so the website and the admin area isn’t painfully slow anymore. If anybody can let me know what I can do to further decrease the amount of queries that would be appreciated.

Post count: 20688

Hi,

I believe by default that menu setting is set to no preloading. Indeed disabling it will improve performance.
You can test your website with online tools, try gtmetrix for example or Google insights and check the results and suggestions provided there. Optimize as many as possible, results should follow.

There are many topics here on the forum in terms of speed improvements and optimization. Some of them here for example
https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
https://forum.tagdiv.com/topic/score-100100-pagespeed-with-newspaper-wordpress-theme/
https://forum.tagdiv.com/topic/newspaper-theme-speedify-your-website/
https://forum.tagdiv.com/topic/tutorial-chriss-custom-optimizations-for-functions-php-etc/
https://forum.tagdiv.com/topic/tip-how-to-easily-minify-your-css-without-breaking-your-site/
https://forum.tagdiv.com/cloudflare-cdn/
https://forum.tagdiv.com/how-to-make-the-site-faster/

Also the theme requirements guide – https://forum.tagdiv.com/requirements-for-newspaper/

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.