WordPress.org

Ready to get started?Download WordPress

Forums

Vote-the-Post
Note: Compatibility issue with Hyper Cache (1 post)

  1. Solinx
    Member
    Posted 1 year ago #

    If, for whatever reason, you're still stuck with using this plugin, be mindful that it prevents Hyper Cache from doing its job.

    To be more specific, Hyper Cache checks to see whether there are any cookies that start with 'wordpress_'. If there are, it assumes a user is logged in and does not cache the page. This plugin sets a cookie called 'wordpress_ratepost'.

    There are a several other (performance) issues with this plugin due to coding that (today at least) is recognized as bad practice. While I'm grateful for the use I've gotten from it in the past, I'm happy to say I can stop using this one soon.

    btw. If you're replacing this plugin for another, be sure to add the following lines to your 'functions.php':

    add_action('init','clean_up_votethepost')
    /**
             *  Clean up the (client side) leftovers of the votethepost plugin
             */
            public function clean_up_votethepost() {
                // Removes 'Vote the post' cookie
                if( isset( $_COOKIE['wordpress_ratepost'] ) ) { setcookie( 'wordpress_ratepost', $_COOKIE['wordpress_ratepost'], 1, COOKIEPATH ); };
            }

    http://wordpress.org/extend/plugins/vote-the-post/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Solinx
  • This topic is not a support question
  • WordPress version: 3.4.1

Tags

No tags yet.