if(siteConfiguration.getCacheStrategy() == CacheStrategy.all){
//TODO: check if query can be executed based on the base configuration of the Cache
Cache cache = getCache();
if(cache != null){
try {
return cache.find(query);
} catch (YardException e) {
if(siteConfiguration.getEntitySearcherType()==null || isOfflineMode()){
throw new ReferencedSiteException("Unable to execute query on Cache "+siteConfiguration.getCacheId(),e);
} else {
log.warn(String.format("Error while performing query on Cache %s! Try to use remote site %s as fallback!",