Index: /trunk/ChangeLog
===================================================================
--- /trunk/ChangeLog	(revision 471)
+++ /trunk/ChangeLog	(revision 472)
@@ -6,4 +6,5 @@
 ChangeLog
 ========
+ * live with wrong system time: allow caching files with mtime in further
  * bug fix for compatibility with Zend Optimizer and other non-cachable
  * new: xcache.stat = On
Index: /trunk/xcache.c
===================================================================
--- /trunk/xcache.c	(revision 471)
+++ /trunk/xcache.c	(revision 472)
@@ -776,4 +776,5 @@
 	xc_entry_data_php_t *php;
 	char *ptr;
+	time_t delta;
 
 	if (!filename || !SG(request_info).path_translated) {
@@ -830,5 +831,6 @@
 
 stat_done:
-		if (XG(request_time) - pbuf->st_mtime < 2 && !xc_test) {
+		delta = XG(request_time) - pbuf->st_mtime < 2;
+		if (abs(delta) < 2 && !xc_test) {
 			return FAILURE;
 		}
