...answers when you need them
866-430-8274    1-617-715-9605
  • Free Version
  • Contact Us
  • Login

Checkbox Forums

Register | Help
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    rgenter Guest

    Exclamation Survey respondents cached?

    I have successfully implemented a stored procedure that bulk loads respondents into the Checkbox database. An issue I have, however, is that the respondents are not allowed to enter the survey until I go into the Administrator interface and view the respondents list for the survey. I don't have to make any changes; simply viewing the list is sufficient to allow the respondents to enter the survey.

    Before I view the list, when a respondent logs in they get a screen that says something like "You are not enabled to take this survey." After I view the list, when a respondent logs in they are taken to the first page of the survey.

    It appears that there is some sort of caching mechanism involved. Is there some way I can tell Checkbox to flush its cache?

  2. #2
    pwiesner is offline Administrator
    Join Date
    Mar 2007
    Posts
    382

    Default

    Is response template caching enabled? You can confirm by checking the value of EnableResponseTemplateCaching in the ckbx_Settings table. When enabled a ResponseTemplate and its access control list is cached in memory. Because you are making your changes directly in the database Checkbox is unaware that the ACL has changed.

    There are a couple of things you could do to work around the caching.
    1 - You could disable this setting, although this will result in a decrease in performance.
    2 - You could use the direct API to alter a property of the ResponseTemplate, this will force the application to reload the cache.
    3 - You could recycle the application pool.
    Last edited by pwiesner; 06-18-2008 at 12:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Feedback

SEO by vBSEO 3.5.0