BuddyDev

Search

Recent Visitors ajax refresh

Tagged: 

  • Participant
    Level: Initiated
    Posts: 1
    Brincy on #26779

    Hello,
    is it possible to autoupdate using ajax the list of the recent users that have visited current profile using the shortcode (without refreshing the page)?
    for a very big website will it show down the ymsql to keep the list of all the users that they have visited? where do you store them?
    Thank You

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #26781

    Hi Brincy,
    Thank you for the question.

    1. No, We do not auto update it via ajax. It will not be efficient as you will need to keep long polling for the updates. If you want, you can do it on your own or hire us to customize it for you.

    2.We store the visits efficiently in a separate table. For a site win ‘n’ users, there will be at most nxn rows(in the extreme case).
    We store 1 entry for visitor to visited and only increment the count of visit/date visited for the subsequent visits. I do not see any issue with a large site.

    Hope that clarifies.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved