PK22899; 5.0.2.14: Fragments are cached twice after
applying PK12081
Downloadable files
Abstract
Duplicate content is given on a cache hit when a parent
servlet buffers its child includes.
Download Description
PK22899 resolves the following problem:
ERROR DESCRIPTION:
Upgrading IBM® Websphere® Application Server to version 5.0.2.14, and
enabling dynacache to cache fragments with WCM, generated an
IllegalStateException. APAR PK12081 resolves this exception but it exposed
another issue with fragment caching. The new problem is that fragments are
cache twice and when customer hits refresh or is served from cache,
duplicate fragments are rendered to the client.
LOCAL FIX:
none
PROBLEM SUMMARY
USERS AFFECTED:
All users whose buffer included JSPs at the parent servlet, such as WCM
PROBLEM DESCRIPTION:
Duplicate content is given on a cache hit when a parent servlet buffers
its child includes.
RECOMMENDATION:
None
Dynacache expects all included JSPs to be flushed on conclusion, and when
these includes are buffered by their consuming parent, dynacache caches
twice; once on the JSP include flush, and once on the parent flush. This
situation produces duplicate content.
PROBLEM CONCLUSION:
A custom attribute, discardJSPContent, has been added to eliminate the
duplicate content on cache hits. It can be utilized like in the following
example: