Caching on the hub.
On the hub the metadata model, the annotation model and also the annotation texts of a service are cached.
In the backend only the metadata model and the annotation model is cached. The annotation texts are not needed in the backend for service instantiation and hence not cached here.
Co-deployment scenario means that hub and backend are one system. Therefore, caching has to be done only once and not once for the hub and for each backend system.
For performance reasons, the same development artifacts are used for the hub and for the backend.
The SAP Gateway Foundation settings made in transaction SPRO (see the SAP Implementation Guide: ) in regards to the metadata caching are only applicable for OData V2 services. There is no possibility for the SAP Gateway Foundation V4 implementation to disable the metadata caching.
In the OData Channel programming paradigm the model provider class including the last modified time stamp is only called once when initially loading the metadata and storing it in the SAP Gateway Foundation metadata cache. If the model provider class is changed afterwards (for example, on account of coding changes or due to an import of a changed model provider class) the metadata cache performs a handshake for every service document or service metadata document request and checks whether the cache contains most up-to-date metadata. If the metadata is outdated a cache refresh is triggered automatically.
The activity which is available for OData V4 services is also available in the SAP Implementation Guide:
.Transaction /IWBEP/CACHE_CLEANUP which is also availabel in the SAP Implementation Guide in your specific system under .