In our project, we use the Datasources plug-in to connect to another database. This database is managed by a different system, so we cannot cache these classes, because we have no way to know when they are updated, so for this data source we disabled the second level cache and query cache. Just an example.