Forums

Too many queries with custom post types (2 posts)

  1. Mixa
    Member
    Posted 6 months ago #

    I've created 8 new custom post types for my site. The problem is that I have about 300 queries instead of 30, how it was before. I have 300 queries even if I do not request any of the custom post type on the current page (For example, on the single page or on the single post type.)

    Where is the problem? How can I decide this bug or optimise queries?

  2. Brad Markle
    Member
    Posted 6 months ago #

    Hi Mixa, I don't have an direct answer for you, but I have developed a plugin that shows all of the queries that are running, and it also shows where at within the WordPress execution they are running. The plugin is called Memory Viewer, however it does much more then show your memory usage.

Reply

You must log in to post.

About this Topic