Dave wrote:
On 7/26/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
Hmmm, I don't know that there is no need for that cache.  That cache is
used to prevent us from having to hit the db constantly when checking
authentication/authorization.  Without it, every single request from
users that are logged in requires extra queries against the db.

Good point. I'll figure out how to flush that cache.


I took a quick look at it and I think you should be able to lookup the "userCache" bean from spring and then call userCache.removeUserFromCache(username). The class used for caching is this one ...

http://www.acegisecurity.org/multiproject/acegi-security/apidocs/org/acegisecurity/providers/dao/cache/EhCacheBasedUserCache.html

Generally speaking I don't like the idea of putting in more code that directly tries to access spring beans, but I'm not sure there is any other option here.

-- Allen



- Dave

Reply via email to