I have set up access to some custom data by creating ContentEntity classes in my module, so I can query and display that data through Drupal entities. However, that data is also updated by a non-Drupal service, that changes some columns in the database directly. After the data is changed by that service I have to use "Clear all caches" in order to see any changes in Drupal.
How can I stop Drupal 8 from caching an entity type at all - so it always queries the fields fresh from the database?
I have tried annotating my Entity class with
render_cache = FALSE, field_cache = FALSE
as these are the cache related options listed in the documentation (Structure of an Entity annotation) and suggested in How to avoid caching of fields in Entity View? However, this didn't have any noticeable effect in my scenario.