blakekr
Member
Posted 6 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?
blakekr
Member
Posted 6 years ago #
Okay, here's how far I've gotten.
I've:
- 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:
http://elliottback.com/wp/wp-print.php?p=914
- 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?