In my web application, i wanted a service to cache updated data using
geowebche. so i worked on seeding tiles automatically with GeoWebCache as in
this post:
http://gis.stackexchange.com/questions/87728/custom-time-interval-for-geowebcache/87804#87804

I see that the "Disk Used" of the layer in "Tile Caching" has been increased
to 50 MB. i also replaced wms with gwc/service/wms in layer requesting in
OpenLayers.

My data is updating every 2 hours. So i thought i have to terminate the
request and create a new one every 2 hours. "scheduled task"

I tried this kill request:

> curl -v -u geowebcache:secured -d "kill_all=all"
> "http://localhost:8080/geowebcache/rest/seed/workspace:layer.xml";

as in the last section here http://geowebcache.org/docs/1.5.1/rest/seed.html

but the "Disk Used" size hasn't changed! and the cached data still the old
data. here is the response:


* About to connect() to 127.0.0.1 port 8080 (#0)
*   Trying 127.0.0.1... connected
* Server auth using Basic with user 'admin'
> POST /geoserver/gwc/rest/seed/workspace:layer.xml HTTP/1.1
> Authorization: Basic YWRtaW46Z2Vvc2VydmVy
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
> zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: 127.0.0.1:8080
> Accept: */*
> Content-Length: 12
> Content-Type: application/x-www-form-urlencoded
> 
* upload completely sent off: 12out of 12 bytes
< HTTP/1.1 500 Internal Server Error
< Server: Apache-Coyote/1.1
< Transfer-Encoding: chunked
< Date: Wed, 30 Apr 2014 10:31:28 GMT
< Connection: close
< 
* Closing connection #0
 : Premature end of file.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Terminate-GeoWebCache-REST-API-Request-tp5137944.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to