WordPress.org

Ready to get started?Download WordPress

Forums

Vote It Up
Speed up (1 post)

  1. schnettker
    Member
    Posted 1 year ago #

    Hi, i am using vote it up and if i use the MostVotedAllTime() function the site will be slow.

    To speed it up (inspired by http://www.sitepoint.com/create-a-voting-plugin-for-wordpress/) i save the count value in the metas.

    votingfunctions.php (only a part)
    http://pastebin.com/1dkbKpSd

    To get the value i stop using GetVotes($postID) and start using

    $votes = get_post_meta($postID, '_votemecount', true) != '' ? get_post_meta($postID, '_votemecount', true) : '0';

    To delete votings i modified the ResetVote Function

    http://pastebin.com/Smyx61hz

    Additionaly i don't need guest votings and delete all SQL Statements about that

    I use it on http://www.gwinnr.de and reduce the cpu load about 90% and save 300 querries on some pages

    http://wordpress.org/extend/plugins/vote-it-up/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.