Support » Plugin: WP Most Popular » Making stats LIVE

  • Even though the author has not bothered to show up for a year on this forum, maybe we can figure it out anyway. It’s a functionality that should have been default in this plugin.

    I want to have my stats CURRENT. See, WMP will not update the 1 day, 7 day and 30 day stats unless a post gets a hit. So when you want to display ‘weekly top 5’ then it will still show a post that was hot 3 weeks ago and has not received a single hit since. It will still show as the ‘current weekly top 5’, which is big flaw in the code.

    My thoughts behind solving this is to use a cron job that will refresh the stats. However, how to ensure it display stats for any last 7 days not just from Monday to Sunday? I’m not quite sure about the logic used in WMP the way it stores serialized dates and their stats. Any ideas how to go about this?

  • The topic ‘Making stats LIVE’ is closed to new replies.