Reducing number of queries (10 posts)

  1. Ajay
    Posted 9 years ago #

    My homepage currently shows that I am running 45-57 queries. This varies.

    How do I go about reducing the number of queries on my pages?

    My host has started complaining about me loading the server and so am looking to optimize the site in every possible way!

  2. moshu
    Posted 9 years ago #

    I remember reading somewhere that the "pagination" plugin was quite a resource-eater :) See if the # of queries drops when deactivated.

  3. Ajay
    Posted 9 years ago #

    Are you talking about Gamerz Page Navigation Plugin?

    I disabled it. Doesn't show much difference.

    btw, my site is http://www.ajaydsouza.com

  4. Ajay
    Posted 9 years ago #

    It only takes one query. I reduced quite a few plugins.

    Is there some way I can count the number of queries individually??

  5. The query count is for individual queries.

    Anyway, enable caching. That'll help a lot. Just create a folder called cache in your wp-content folder and CHMOD it to 777. :)

  6. Ajay
    Posted 9 years ago #

    Viper007Bond, I am currently using WP-Cache. Isn't it supposed to be better than the inbuilt WordPress Cache?

  7. Yes, I reduces queries even more, but WP-Cache can have certain issues.

    If you're already using WP-Cache, then there's not much more that you can do to cut queries.

  8. Ajay
    Posted 9 years ago #

    What kind of issues does WP-Cache have?

  9. Lester Chan
    Posted 9 years ago #

    my page navi plugin only uses extra 1 query =D

  10. What kind of issues does WP-Cache have?

    Well, since you are actually caching the output of a script, some plugins don't like that, such as WP-Poll.

    WP2's internal caching caches the queries rather than the output. So, rather than going to the db to get an option value or the contents of a post/page, they're pulled from the cache.

Topic Closed

This topic has been closed to new replies.

About this Topic