Are you using this patch on the logic module?
https://tickets.openmrs.org/browse/LOGIC-94

Apparently the token service wasn't really using the cache...

Ben

On Wed, Oct 19, 2011 at 4:26 PM, Tammy Dugan <[email protected]> wrote:

> If we update a person's birthdate in the webapp and run the following:
>
>  context.read(patient.**getPatientId(), 
> context.getLogicDataSource("**person"),
> "BIRTHDATE").toDatetime();
>
> We get the old birthdate instead of the new one. I drilled down into the
> logic code and the criteria.list is actually getting executed so the issue
> is not that the rule result is cached. The issue seems to be that hibernate
> is caching the birthdate and not updating it with the new value when
> criteria.list is called. Here is the criteria getting executed:
>
> CriteriaImpl(org.openmrs.**Person:this[Subcriteria(names:**name)][personId
> in (28039)])
>
> It is line 108 of HibernateLogicPersonDAO.
>
> Any ideas?
>
> Thanks,
>
> Tammy Dugan
>
> --
> Tammy Dugan
> CHIRDL Technical Lead
> Children's Health Services Research
> IU School of Medicine
>
> ______________________________**___________
>
> To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
> [email protected] with "SIGNOFF openmrs-devel-l" in the  body
> (not the subject) of your e-mail.
>
> [mailto:LISTSERV@LISTSERV.**IUPUI.EDU <[email protected]>
> ?body=SIGNOFF%**20openmrs-devel-l]
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to