I have a custom role provider, whereby the role for a particular user can change when they perform certain actions.
This is causing a couple of problems:
If a role is added to a user, which would allow them access to a page, this doesn't take effect until I clear the sitecore cache manually using
/sitecore/admin/cache.aspxWe are caching a menu bar rendering by user. But when permissions change, new items may be added / items removed, but this isn't reflected because its coming from the cached version.
Is there a way I can programmatically clear a particular user's sitecore cache?