https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412010-02-03T22:04:16Zlighty labsLighttpd - Feature #2142: stat_cache increasehttps://redmine.lighttpd.net/issues/2142?journal_id=67732010-02-03T22:04:16Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.26</i> to <i>1.4.27</i></li></ul> Lighttpd - Feature #2142: stat_cache increasehttps://redmine.lighttpd.net/issues/2142?journal_id=68972010-04-28T14:58:54Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.27</i> to <i>1.4.x</i></li></ul><p>I don't think this is really important - stat calls should only be slow if the kernel has to load it from disk or network - i'll move it to 1.4.x (no time to review it right now).</p> Lighttpd - Feature #2142: stat_cache increasehttps://redmine.lighttpd.net/issues/2142?journal_id=87602016-02-13T08:57:33Zgstrauss
<ul></ul><p>While patch is trivial, the question remains "should this be done here?" I think the answer is no. There are better alternatives.</p>
<p>server.stat-cache-engine = "simple" is intended to be exactly that: simple, and so I think the 1 second stat cache is reasonable. A better alternative, where available, is server.stat-cache-engine = "fam" which will reduce the stat() calls for filesystems that seldom change.</p>
<p>For highly loaded websites a caching proxy such as Varnish or Squid is recommended, as is offloading to a CDN for really high volume. Any of these will be much more efficient than just extending time to cache stat values.</p> Lighttpd - Feature #2142: stat_cache increasehttps://redmine.lighttpd.net/issues/2142?journal_id=88172016-02-19T16:53:25Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Wontfix</i></li><li><strong>Target version</strong> deleted (<del><i>1.4.x</i></del>)</li></ul><p>Also given the stat-cache is cleared after 2 seconds anyway this patch is broken anyway.</p> Lighttpd - Feature #2142: stat_cache increasehttps://redmine.lighttpd.net/issues/2142?journal_id=137362023-12-31T08:00:52Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Wontfix</i> to <i>Fixed</i></li><li><strong>ASK QUESTIONS IN Forums</strong> set to <i>No</i></li></ul><p><code>server.stat-cache-engine = "inotify"</code> (or <code>"kqueue"</code>) will cache for up to 32 seconds.</p>