Avoid catalog linear scans in GWC integration listeners

Description

The current GWC integration code, along with jdbcconfig, forces a full catalog load from database every time a style is changed, and loads way more than necessary for layer changes (all groups, which results in all their layers being load).
Use catalog.list with proper filters to limit data loading instead.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure