WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostViews
Avoid running post-views on pages (2 posts)

  1. cboettig
    Member
    Posted 2 years ago #

    The options allow one to turn off post-views from displaying on pages, but it seems the script is still running in pages, which hurts the page load-times considerably. Is there a way to disable this?

    Ideally postviews would be able to get data from the jetpack stat counter (which already has a stats API), which is already collecting this information, but I haven't seen any plugin that can do this.

    http://wordpress.org/extend/plugins/wp-postviews/

  2. shansta
    Member
    Posted 2 years ago #

    Hey

    Line 98 in wp-postviews.php

    you could change to

    if(defined('WP_CACHE') && WP_CACHE && is_single()) {

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic