I am doing something like this to update a date on the content instance in WEM. When I log into WEM, I see the new date; however, I don't see the new date on the site as it seems to be caching old value. Is there a flag or method to tell WEM this ContentInstance has changed. If I open the item in WEM and make any small change like adding a space to another field and hit save, the new date does show on the site. So, it seems like the WEM editor might be setting some sort of change flag and I need to do that from my code.
Any suggestions?
ContentInstance existingCi = findContentInstance()
existingCi.setAttributeValue("REVIEWDATE", new Date());
existingCi.commit();