How to assign time interval to take regular cache using geowebche. For instance every afternoon at 13:00 hrs geowebcache should be started automatically and it should start creating tiles. ?
This is a complete working method to seed tiles automatically with GeoWebCache:
1) Go to http://curl.haxx.se/dlwiz/, select your Operating System, and then download and install the cURL utility.
2) Then, with the help of cURL you can initiate a seeding task:
curl -v -u USERNAME:PASSWORD -XPOST -H "Content-type: text/xml" -d "<seedRequest><name>WORKSPACE:LAYER</name><srs><number>4326</number></srs><zoomStart>1</zoomStart><zoomStop>12</zoomStop><format>image/png</format><type>truncate</type><threadCount>2</threadCount></seedRequest>" "http://127.0.0.1:8090/geoserver/gwc/rest/seed/WORKSPACE:LAYER.xml"
Notice 1: Pay attention to the text capitalisation, especially when you use a workspace with uppercase letters, like mine; otherwise you'll obtain an error.
Notice 2: In Windows, you'll obtain an other error if you will try to run the example showed in GeoWebCache REST API Seeding and Truncating (In Windows, you must use only double quotes in the curl command).
Notice 3: Don't use breaks in the curl command if you are not looking for troubles.
Notice 4: Between the
typetags you can use the
seed / reseedor
3) In Windows, all you have to do, is to schedule a new task for the seeding process:
4) And here's your tiles:
You could try setting up a cron job if you are running on a Linux system.