<br><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 10:46 AM, Lukas Fleischer <span dir="ltr"><<a href="mailto:cgit@cryptocrack.de" target="_blank">cgit@cryptocrack.de</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
/* If the cache is disabled, just generate the content */<br>
- if (size <= 0) {<br>
+ if (size <= 0 || ttl == 0) {<br>
fn();<br>
return 0;<br>
}</blockquote><div><br></div><div>Apparently we already special case ttl for < 0:</div><div><br></div><div><div>/* Check if the slot has expired */</div><div>static int is_expired(struct cache_slot *slot)</div>
<div>{</div><div> if (slot->ttl < 0)</div><div> return 0;</div><div> else</div><div> return slot->cache_st.st_mtime + slot->ttl * 60 < time(NULL);</div><div>}</div>
</div><div><br></div><div>What should our behavior be for consistency?</div></div>