Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ajay

    (@ajay)

    Which page of your site are you testing exactly?

    I suspect it is because of the current version of the tracker which I had to modify as part of the recent update.

    This is the gist with the old code which can be used to get the old tracker back which is much faster.

    • This reply was modified 8 years, 2 months ago by Ajay.
    Thread Starter outcats85

    (@outcats85)

    I’m testing the page:

    https://www.fabionodariphoto.com/wrp/

    What should I do with the link you provided?

    Plugin Author Ajay

    (@ajay)

    It’s a few steps to set up the gist currently. I’ll eventually put through an add-on.

    1. Create a new file with this code and save it in the top-10/includes folder
    https://gist.github.com/ajaydsouza/e4637ebb9df9158fc5a9#file-top-10-addcount-js-php

    It should be called top-10-addcount.js.php.

    Change all $_POST references to $_GET

    2. Add this to your theme’s functions.php file

    
    /**
     * Use external tracker.
     *
     * @since 2.3.0
     *
     * @param string $home_url
     * @return string
     */
    function filter_tptn_add_counter_script_url( $home_url ) {
    	return TOP_TEN_PLUGIN_URL . 'includes/top-10-addcount.js.php';
    }
    add_filter( 'tptn_add_counter_script_url', 'filter_tptn_add_counter_script_url' );
    
    Thread Starter outcats85

    (@outcats85)

    Thanks.. I did it but nothing changes… It’s actually a bit slower.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin slowing down the site’ is closed to new replies.