LayerGroupContainmentCache is being rebuilt on each ApplicationEvent

Description

As per this ticket, LayerGroup cache was not properly initializing:

https://osgeo-org.atlassian.net/browse/GEOS-10545

 

However, with that fix, the issue right now is that it re-initializes on every ApplicationEvent.

https://github.com/geoserver/geoserver/pull/5985/files#diff-c4dc2bd5333c21e0165cc9f8dd755a2d0a57bbfd99a21e4cc0331dbb792dd080R196-R198

Which means: a REST call or a UI operation on the Web Interface to check a Style or see a Layer config or whatever ServletRequetHandledEvent, triggers the re-initialization of the LayerGroup cache.

We need to filter on the event and make sure that this LayerGroupCache reinit only happens for example when catalog get recreated or some changes at LayerGroups occur.

Environment

None

Activity

Andrea Aime 
June 2, 2023 at 10:01 AM

Please remember to close the tickets once the PRs are merged.

Fixed

Details

Assignee

Reporter

Fix versions

Components

Priority

Created May 26, 2023 at 1:01 PM
Updated June 2, 2023 at 10:01 AM
Resolved June 2, 2023 at 10:01 AM