for (PipelineComponent pipelineComponent : this.getComponents()) {
if (pipelineComponent instanceof CachingPipelineComponent) {
CachingPipelineComponent cachablePipelineComponent = (CachingPipelineComponent) pipelineComponent;
CacheKey cacheKey = cachablePipelineComponent.constructCacheKey();
if (cacheKey != null) {
result.addCacheKey(cacheKey);
if (this.logger.isDebugEnabled()) {
this.logger.debug(" ~ adding " + cacheKey + " for component " + pipelineComponent);
}
continue;
}
}
// support expires caching
if (this.expires != null) {
if (this.logger.isDebugEnabled()) {
this.logger.debug(" ~ adding " + ExpiresCacheKey.class.getSimpleName() + " for component: "
+ pipelineComponent + " (the component doesn't support caching "
+ "but expires caching is activated)");
}
return new ExpiresCacheKey(new InvalidCacheKey(this.expiresCacheKey), this.expires);
}
// component does not support caching
if (this.logger.isDebugEnabled()) {
this.logger.debug(" ~ no caching: " + pipelineComponent);
this.logger.debug("Aborting cache key construction");
}
return null;
}
// support expires caching
if (this.expires != null) {
CacheKey expiresCacheKey = new ExpiresCacheKey(result, this.expires);
if (this.logger.isDebugEnabled()) {
this.logger.debug("Creating " + expiresCacheKey + " for pipeline " + this);
}