Open tbonfort opened 12 years ago
Date: 2011/10/10 - 08:46 What about an expiry time in seconds after tile creation, but rounded to the nearest/lower/upper time resolution ?
eg: all tiles created from 10:00:00 to 10:59:59 expire at 11:00:00
Author: rdewit Date: 2011/10/10 - 09:14 I like the idea, but would that work if some layers would be updated by the hour, some every day and some 2x per month?
How would you define what the time resolution looks like?
Date: 2011/10/11 - 09:51 You're right, the resolution used should be configurable, to be able to specify the recurrence in hours,days,weeks, months,...
2x per month is going to be problematic, as I have found no simple api/library that lets you add half a month to a timestamp.
Adding a simple timestamp to the expires configuration is not very involved, the configuration of
#!xml
<expires>
<timestamp>2011/12/16 20:00:00</timestamp>
</expires>
or
#!xml
<expires> <!-- relative to access time -->
<access>
<hours>1</hours>
<minutes>30</minutes>
</access>
</expires>
or
#!xml
<expires> <!-- relative to tile modification time -->
<mtime>
<hours>1</hours>
<minutes>30</minutes>
</mtime>
</expires>
the actual
#!xml
<expires>
<access>
<seconds>number</seconds>
</access>
</expires>
Recurring expiration would be more involved, and would need discussion as to what features to provide, and what syntax would be used for configuration.
Author: rdewit
Date: 2011/10/13 - 08:39
For my use case, the timestamp option for both
Hi, I'd like to ask - is this issue somehow in progress? I would really appreciate the possibility to use timestamp in my cache...
@evka1410 there is no current work ongoing for this. I can however be contracted to do it if you are willing to pay for it.
Reporter: rdewit Date: 2011/10/10 - 08:38 Currently and are set in seconds after tile creation.
Sometimes it can be useful to set the expires value to a fixed point in time, for example when creating caches of weather forecasts that renew every hour on the hour.
Note: Ideally it would be possible to use a cron-like syntax for automatically updating the and values, but that is out of scope for this ticket.