* @see org.geoserver.catalog.event.CatalogListener#handleAddEvent
* @see GWC#createLayer(LayerInfo)
* @see GWC#createLayer(LayerGroupInfo)
*/
public void handleAddEvent(CatalogAddEvent event) throws CatalogException {
GWCConfig config = mediator.getConfig();
boolean sane = config.isSane();
boolean cacheLayersByDefault = config.isCacheLayersByDefault();
if (!cacheLayersByDefault) {
return;
}
if (!sane) {
log.info("Ignoring auto-creation of tile layer for " + event.getSource()