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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using civicrm_location_update + civicrm_contact_search, cache issue?
Pages: [1]

Author Topic: Using civicrm_location_update + civicrm_contact_search, cache issue?  (Read 885 times)

civicpixel

  • I’m new here
  • *
  • Posts: 25
  • Karma: 3
Using civicrm_location_update + civicrm_contact_search, cache issue?
April 02, 2009, 04:20:18 pm
I've integrated several Drupal CCK forms with CiviCRM and the API's have made this really easy, so thanks for all of the effort here. The client's latest request is for the forms to not only add new contacts, but update existing. I have this working 99%, except I'm having an issue with civicrm_contact_search when used after civicrm_location_update. When civicrm_contact_search is used with an email address right after civicrm_location_update, it doesn't find the contact. It seems like a caching issue because if I use civicrm_location_update, go into CiviCRM, manually edit & save the contact, then use civicrm_contact_search -- it works fine.

Any hints on how I might resolve this would be great, I tried using civicrm_contact_get & civicrm_contact_add right after updating the location, but that still didn't update the record so that civicrm_contact_search could find it. Is there a function I could call to re-save the contact, or something similar?

Thanks!
Brian

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Using civicrm_location_update + civicrm_contact_search, cache issue?
April 02, 2009, 05:16:18 pm

hey cool to hear about your integration with CCK :) Can you please give us more details and maybe publish a blog post or two. Would love to chat on what you have done etc on IRC

a few questions:

1. what happens when u just do a view on the contact in civicrm, does this show your newly added location?

2. are you using any replication in mysql?

if u get irc, we can help debug it a bit faster :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Using civicrm_location_update + civicrm_contact_search, cache issue?

This forum was archived on 2017-11-26.