Go Back   CHECKBOX® Online Community > Checkbox® > CHECKBOX® Developer Kit

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2008, 10:01 AM
rgenter rgenter is offline
Junior Member
 
Join Date: Apr 2008
Posts: 6
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?
Reply With Quote
  #2 (permalink)  
Old 06-18-2008, 11:53 AM
pwiesner pwiesner is offline
Senior Member
 
Join Date: Mar 2007
Posts: 167
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:12 AM.


Search Engine Friendly URLs by vBSEO 3.0.0 RC8