WP 1.5: excluding plugins (like Democracy) from wp-cache (2 posts)

  1. blakekr
    Posted 10 years ago #

    I've been struggling with this for quite a while. Wp-cache (I'm using the latest, 2.17) is a phenemonal performance booster for my WP site and it literally couldn't function without it. But polls are also an important part of the interface; yet I haven't been able to include them beccause I can't get the mfunc syntax to effectively exclude (NOT cache) the Democracy poll plugin or any other poll plugin I've tried. Thus, they break.

    Has anyone found a way to do this?? Please?

  2. blakekr
    Posted 10 years ago #

    Okay, here's how far I've gotten.

    - enabled democracy long enough to create a poll.
    - disabled wp-cache ...
    - disabled democracy ...
    - then, called it manually from the sidebar as described on this page:
    - re-enabled wp-cache
    - answered the poll
    - it seems to work until I return to that page and then I get a fatal error because this function is undefined (presumably wpdb):
    $poll_question = $wpdb->get_row("SELECT id, question, voters, allowusers FROM {$table_prefix}democracyQ WHERE {$where}");
    Which makes sense since I call the plugin so late in the game.

    Is it possible to work around this?

Topic Closed

This topic has been closed to new replies.

About this Topic