Statistics are never cached because they frequently change. However, in the isolation of a WFS-T transaction, it is more efficient to cache the statistics. Using the WPS import process provided as an extension to GeoServer, a new 'reader'/'writer' is created for each new simple feature across a single transaction. The code looks up stats for the request, causing an unnecessary database lookup.
Statistics are never cached because they frequently change. However, in the isolation of a WFS-T transaction, it is more efficient to cache the statistics. Using the WPS import process provided as an extension to GeoServer, a new 'reader'/'writer' is created for each new simple feature across a single transaction. The code looks up stats for the request, causing an unnecessary database lookup.