Support » Plugin: WordPress Popular Posts » Why is there a POST for WPP

  • Resolved blindpet

    (@blindpet)



    I am doing some optimzations and have now managed to cache the GET requests for Recently using Varnish (go me).

    I ajaxify both Recently and WPP. In Firebug I can see WPP makes a post request that returns WPP: OK. Execution time: 0.003697 seconds. Is there a reason there is one for WPP but not recently? Is there a way I can turn these off?

    https://wordpress.org/plugins/wordpress-popular-posts/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    The POST request you see there in Firebug is what updates the views count when a post / page is visited. This is something only WPP does, Recently doesn’t track views count (that’s what WPP is for :P). As you may already guess, it can’t be turned off.

    Plugin Author Hector Cabrera

    (@hcabrera)

    On a side note, that console message you saw will probably go away on the next release of the WPP plugin.

    Gotcha, so even if I turn off ajaxify it is still going to happen because it needs it for tracking, crap 😛

    No way it can use Analytics or something else?

    Plugin Author Hector Cabrera

    (@hcabrera)

    The Ajaxify feature sends GET requests… I think 😛 Haven’t checked that part of the code lately.

    Using Analytics may be possible, but then I would have to rewrite a big chunk of the plugin to integrate it with GA’s API. I may consider writing a spin-off version of WPP just for that, but it’s not going to happen anytime soon (if it ever happens, that is :P) due to the demential amount of work I currently have D:

    I am definitely seeing GET requests for the actual widgets and reduced the load time from 700ms to 128ms (love Varnish) but there are two plugins sending POST requests to AJAX (the tracking part I understand). The other plugin is for share buttons and is just getting numbers of shares (something easily cacheable, I think) and hopefully not requiring POST – but hey I’m no web developer.

    That other version would be cool as long as GA’s API is fast and reliable 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why is there a POST for WPP’ is closed to new replies.