[GIS] How to reload the Geowebcache gwc-gs.xml manually

geoservergeowebcache

Is there a possibility to reload the gwc-gs.xml configuration file manually?
For example I changed <cacheLayersByDefault>true</cacheLayersByDefault> to false and reloaded the configuration at http://localhost:8082/gwc/demo but it has no effect on the user intreface.

I also tried to reload it via REST post request:
enter image description here

The status code returns an OK but still there are no changes (here is a link to the Geowebcache documentation).

The reload works if the whole geoserver is restarted.
Is it possible to reload the gwc-gs.xml file without restarting the geoserver or do i somehow have to reload the xml with a geoserver REST request?

Best Answer

On the GeoServer Status page of the admin console, there are a few options for freeing a reloading things. http://docs.geoserver.org/stable/en/user/webadmin/server/status.html

Specifically I'd suggest the Configuration and catalog reload button should probably do what you want; it reloads all configuration and is similar to a restart without actually doing a restart. Resource Cache clearing can also be useful.

Be aware that while GeoServer is re-reading the config, it won't be responding to requests.

Related Question