Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Caching
Last Post 08/02/2012 2:21 PM by Peter Donker. 2 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Joel Simon
New Member
New Member
Posts:1


--
07/27/2012 12:03 PM
Hi,

Could you tell me how long security credentials are cached for, or whether there is a way to manually refresh the cache?

I have a site where users are able to change their user roles through a custom interface, which works initially but when they make further changes, the documents they can see don't change in DMX.

If the site is restarted, users are able to see the correct documents, and I saw in the forum that the credentials are cached.

Thanks
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/02/2012 11:49 AM
Hi Joel,

The length is decided by DNN using the cache settings. It is a good point you're raising and I'll see about making this a setting or just expiring quickly. What do you think?

Peter
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/02/2012 2:21 PM
Actually, on second thought maybe we're barking up the wrong tree, here. The thing is that the actual roles from users is taken from a View in the database. vw_DMX_ActiveUserRoles to be exact. The only thing that is cached in the module is if the user is and admin/doc admin. So unless that changes, the file list should be accurate. What you could do to debug is to run this:

SELECT * FROM vw_DMX_ActiveUserRoles WHERE UserId=XYZ

where XYZ is the user id of a specific user that then changes their roles. Then rerun the SQL to see if it returns something else.

One question: we're talking about the main module here, right? And not some extension of the module?

Peter
You are not authorized to post a reply.