It's better to not update cache than waste a lot of time waiting for a lock.
Also increased staleness timeout to 5 minutes - it's safer that way and with
the reduced lock timeout doesn't matter as much.
--HG--
branch : HEAD
/* When allocating space for transactions, don't use blocks larger than this. */
#define MAIL_CACHE_MAX_RESERVED_BLOCK_SIZE (1024*512)
-#define MAIL_CACHE_LOCK_TIMEOUT 120
-#define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 60
+#define MAIL_CACHE_LOCK_TIMEOUT 2
+#define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 300
#define CACHE_RECORD(cache, offset) \
((const struct mail_cache_record *) \