Flash fl = Flash.current();
if (RenderResultCache.shouldIgnoreCacheInCurrentAndNextReq()) {
fl.put(RenderResultCache.READ_THRU_FLASH, "yes");
} else {
fl.remove(RenderResultCache.READ_THRU_FLASH);
fl.discard(RenderResultCache.READ_THRU_FLASH);
}
// always reset the flag since the thread may be reused for another
// request processing
RenderResultCache.setIgnoreCacheInCurrentAndNextReq(false);