• I am using feedwordpress version 2010.0602

    When I load the homepage, or any page for that matter, feedwordpress has added a bunch of SELECT queries that runs each time any page runs.

    I have been noticing this since the recent updates of feedwordpress.

    any insight as to what it is? Below is one of such SELECT Query

    SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_name = ‘new-aid-ship-heads-to-gaza’ AND wp_posts.post_type = ‘post’ ORDER BY wp_posts.post_date DESC
    Call from: require, require_once, include, comments_popup_link, get_permalink, apply_filters, call_user_func_array, syndication_permalink, url_to_postid, WP_Query->WP_Query, WP_Query->query, WP_Query->get_posts

Viewing 4 replies - 1 through 4 (of 4 total)
  • same here, anything on that please? thanks!

    christo.ebe,

    The query that you’re looking at is the result of a bug fix introduced in FeedWordPress 2010.0528. The fix was needed to ensure that the syndication permalink rewriter would work correctly outside of the post loop context, since the old way of doing implicitly assumed that the post whose permalink was being rewritten was the same as the current post in the post loop (which caused problems for plugins that displayed lists of things like related posts or popular posts). The database query is just to look up the correct numerical ID for the post, given the URL being rewritten.

    However, since applying that fix, I’ve done some more research and found a more efficient way of accomplishing the same effect; so the next public release of FeedWordPress (or the current Development Version, if it’s really important to you to get the fix right now) will generally result in far fewer of these hits to the database.

    Hope this helps. Does that answer your question?

    Glad to hear you’ll fix that, thanks!

    Thread Starter christoebe

    (@christoebe)

    radgeek, Sounds Great ! ?? Good luck with your dev work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: FeedWordPress] Adds more Queries in each page’ is closed to new replies.