On Wed, Feb 5, 2014 at 10:46 AM, Lukas Fleischer <[email protected]>wrote:
>
> /* If the cache is disabled, just generate the content */
> - if (size <= 0) {
> + if (size <= 0 || ttl == 0) {
> fn();
> return 0;
> }
Apparently we already special case ttl for < 0:
/* Check if the slot has expired */
static int is_expired(struct cache_slot *slot)
{
if (slot->ttl < 0)
return 0;
else
return slot->cache_st.st_mtime + slot->ttl * 60 <
time(NULL);
}
What should our behavior be for consistency?
_______________________________________________
CGit mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/cgit