Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.3.2
Description
Cache lookup ignores StreamableResourceProcessing argument.
public class SRSCachingInterceptor implements StreamableResourceSource, InvalidationListener
{
...
public StreamableResource getStreamableResource(Resource baseResource, StreamableResourceProcessing processing, ResourceDependencies dependencies)
throws IOException
{
if (processing == StreamableResourceProcessing.FOR_AGGREGATION)
StreamableResource result = TapestryInternalUtils.getAndDeref(cache, baseResource);
if (result == null)
{
result = delegate.getStreamableResource(baseResource, processing, dependencies);
if (isCacheable(result))
{ dependencies.addDependency(baseResource); cache.put(baseResource, new SoftReference<StreamableResource>(result)); }}
return result;
}