[cache] fix a cache issue with an entity created without relation cache prefill
Prefilling the relation cache has its benefits sometimes, but for
massive imports it may be a memory hog.
The caches should be kept coherent even if there was no prefill.
Closes #3828155.
.. _cwprops:
The property mecanism
---------------------
.. XXX CWProperty and co
Property API
~~~~~~~~~~~~
.. XXX feed me
Registering and using your own property
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. XXX feed me