WordPress.org

Ready to get started?Download WordPress

Forums

Performance of "Conditional Widgets" and "Custom Post Widgets" plugins (3 posts)

  1. riddle
    Member
    Posted 2 years ago #

    I've inherited a site which uses both the "Conditional Widgets" and "Custom Post Widgets plugins, and seems to be suffering performance issues as a result.

    My site has 73 "Content Block" widgets created with the Custom Post Widgets plugin, which are then controlled by the Conditional Widgets plugin, keying on 22 page categories.

    With that many conditional widgets I guess it's not surprising that there's a performance cost: pages containing the sidebar in question take about 10 seconds longer to load than pages without the sidebar.

    My questions:

    Has anybody else seen this problem?

    Is one of the plugins to blame, or is it likely to be the interaction of the two?

    If I had to guess, my suspicions fall on the Conditional Widgets plugin. Is there some other plugin which can do the same thing more efficiently? Watching a screencast from the author of the Custom Post Widgets plugin, Johan van der Wijk, I see that he uses the "Widget Logic" plugin. Is there a reason to believe that Widget Logic would be more efficient than Conditional Widgets?

    Finally, is there some other approach entirely that I should consider? For example, rather than checking all 73 Content Block widgets on every page load, maybe there's a way to have the content of the page itself indicate content to display in the sidebar. Hm.

  2. Jason Lemahieu (MadtownLems)
    Member
    Posted 2 years ago #

    If you're familiar with php and conditional tags, I strongly recommend Widget Logic. My plugin, Conditional Widgets, is specifically geared towards users who lack such knowledge.

    I'd give that a shot first.

  3. riddle
    Member
    Posted 2 years ago #

    Thanks, MTL!

    As it turns out, the widget overkill on the site is unnecessary. Most of these widgets only appear on one page.

    So we're going to try getting rid of the sidebar in the template and using blockquotes or shortcodes to just float a box of text to the right as needed.

Topic Closed

This topic has been closed to new replies.

About this Topic