1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Poll Box caching allows multiple votes and displays incorrectly

Poll Box caching allows multiple votes and displays incorrectly

11 posts, 0 answered
  1. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    12 Nov 2008
    Link to this post
    Hi,

    I have a poll set up on our sitefinity site (using latest 3.5 SP).

    I have 2 pages setup each with poll box for this same poll.

    I am using aspnet caching (with a time of 2 mins) and have set "cache this page" to yes in the page properties for both of these pages.

    The 2 pages seem out of synch showing different results, some users are able to vote more than once and sometimes the results are shown for users that have yet not voted.

    Is this a known issue, or do I have something in my poll setup or caching set incorrectly.

    Thanks in advance

    Damian Dommett
  2. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    12 Nov 2008
    Link to this post
    On closer inspection, the votes are being recorded correctly even if they try to submit a second vote.  The pages are still not working correctly...

    We have an IIS key word set up which takes you to http://intranet/Home.aspx, if you have already voted you will see the radio buttons again.

    If you navigate away and back to the page, or post back you go to
    http://intranet/intranet/Home.aspx, if you have already voted you will see the results bars.

    This is not the same for all users as some get the questions either way.

    I'm so confused.

    Damian
  3. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    12 Nov 2008
    Link to this post
    Also, what is the pollbox property 'IPreleasetimeout' used for?

    could this be part of the problem
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Nov 2008
    Link to this post
    Hello Damian,

    This behavior is a result from the caching. Since the polls should show dynamic data, the caching is not suitable for this page. When the request is received, Sitefinity checks if this page exist in the cache - the control properties are saved also in the cache, and if the page exist - it is served. The only way to get around this issue to create a substution asp.net control, containing the polls controls. This way, the page will be cached, but only the Polls controls would not. We suggest you to turn off the caching for this page, if you are not going to develop a subtitution control.

    The caching is improved and using substituon controls will be really easier in SP2, which coming in the mid of December. We are also going to prepare a series of blog posts about this type of caching.

    IPreleasetimeout is a count down time, after which the visitor's IP address will be released and he/she will be able to vote again.

    I hope this is helpful.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    13 Nov 2008
    Link to this post
    Cheers Georgi,

    I've turned caching off for those pages and so now I get the bars every time I hit the page.

    This is until more people have voted and I get the radio buttons again????

    Damian.
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Nov 2008
    Link to this post
    Hello Damian,

    Please check the IPreleasetimeout property's value again - it might be too low. When this time expires, you will be able to vote again indeed.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    14 Nov 2008
    Link to this post

    Thanks Georgi,

    Is there a way to set this so the IP never gets release and stays locked permanently

    Damian

  8. Joe
    Joe avatar
    138 posts
    Registered:
    24 Sep 2012
    14 Nov 2008
    Link to this post
    Hi Damian,

    Thanks for contacting us.

    IPs are never released, unless the release blocked IPs link button is clicked by the user. When you make a poll and click edit, that option to release IPs is located right beneath the title. For more info on our Polls module, please read Working with Modules > Polls in our User Manual.

    Regards,
    Joe
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    17 Nov 2008
    Link to this post
    Hi Joe,


    now I'm really confused...

    According to Georgi:
    IPreleasetimeout - When this time expires, you will be able to vote again indeed.

    But According to you:
    IPs are never released, unless the release blocked IPs link button is clicked

    Which is it ?  The manual does not mention any of this.  All I want to do is make it so the IPs are released and the users cannot vote twice.  The IP's seem to get released after the timeout, but I want to stop this happening (i.e. set the timeout to infinity).

    Thanks

    Damian
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Nov 2008
    Link to this post
    Hi Damian,

    We apologize for misleading you.
    Please see the attached image. The only suggestion we could give you is to enter a significantly large number for the IpReleaseTimeOut property. There is no option to block an IP permanently yet.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  11. Damian
    Damian avatar
    42 posts
    Registered:
    25 Mar 2008
    21 Nov 2008
    Link to this post
    Hi Georgi,

    Thanks for confirming that for me, I have set the timeout to a very high number.

    Damian
Register for webinar
11 posts, 0 answered