--- x/lighttpd-1.4.23/src/stat_cache.c	2009-06-07 21:06:07.000000000 +0200
+++ lighttpd-1.4.23/src/stat_cache.c	2009-10-19 16:43:06.000000000 +0200
@@ -39,6 +39,8 @@
 #define lstat stat
 #endif
 
+#define MAX_CACHE_TIME 15
+
 #if 0
 /* enables debug code for testing if all nodes in the stat-cache as accessable */
 #define DEBUG_STAT_CACHE
@@ -414,7 +416,7 @@
 
 		if (buffer_is_equal(name, sce->name)) {
 			if (srv->srvconf.stat_cache_engine == STAT_CACHE_ENGINE_SIMPLE) {
-				if (sce->stat_ts == srv->cur_ts) {
+				if ((sce->stat_ts - srv->cur_ts) < MAX_CACHE_TIME) {
 					*ret_sce = sce;
 					return HANDLER_GO_ON;
 				}
