CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • API way to clear/refresh the CIVICRM User Cache on a per user basis
Pages: [1]

Author Topic: API way to clear/refresh the CIVICRM User Cache on a per user basis  (Read 1041 times)

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
API way to clear/refresh the CIVICRM User Cache on a per user basis
January 24, 2013, 12:30:33 pm
Background can be found on my problem here:http://forum.civicrm.org/index.php/topic,27302.msg117230.html#msg117230

I really need a way to clear the civicrm cache for the current user so i can make my custom project work.  I think this would be a useful API addition.

Best Regards,

David

shinzan

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5.8
  • MySQL version: 5
  • PHP version: 5
Re: API way to clear/refresh the CIVICRM User Cache on a per user basis
January 26, 2013, 04:52:58 pm
My custom code is working, my workaround involves logging the user out of joomla and then programatically logging them back in via the code in the last post.  It was quite a long way around though and a clearcache($userid) style api function would have been awesome!

However I am a big fan of CIVICRM and now I just need to figure out guest memberhsips thats critical,  I know there is a community hack but I'm going to try and do something even more simple based on encrypted cookie deauthentication and reauthenication when they hit my custom control panel.

Ill let everyone knows how it goes, I am about 95% sure i can get guest member functionality in this way.  My custom dashboard will log the joomla user out and redirect to the public membership page, when they go back to the control panel if it has been less than 5 minutes and its the same user as the encrypted cookie joomla user id then it will auto log them back in.

Thanks

David

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • API way to clear/refresh the CIVICRM User Cache on a per user basis

This forum was archived on 2017-11-26.