I created custom content entities to handle a small NGO membership (Member, Person, both linked to Drupal 'users').
I have a form allowing users to perform online membership application.
Submitting this form creates/updates these custom content entities.
My problem is that these changes to the content entities doesn't show until I clear all the caches (for example with UI: Administration > Configuration > Development > Clear all caches.
In a previous version of my form, I had a drupal_flush_all_caches()
that did the job, but it lead to other problems I could get rid of only removing drupal_flush_all_caches()
.
How can I have the same result (immediate availability of entities updates) without using drupal_flush_all_caches()
?