[libchamplain] Make the cache expire 1 day
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Subject: [libchamplain] Make the cache expire 1 day
- Date: Fri, 12 Jun 2009 01:20:18 -0400 (EDT)
commit 7ef2e565f6ca8f8a349b861c1d93674eed1a1bb1
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Fri Jun 12 01:20:46 2009 -0400
Make the cache expire 1 day
1 hour was ridicoulous and adds unnecessary stress on the servers
champlain/champlain-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-cache.c b/champlain/champlain-cache.c
index 7adc7b8..5d5a4a9 100644
--- a/champlain/champlain-cache.c
+++ b/champlain/champlain-cache.c
@@ -463,7 +463,7 @@ champlain_cache_tile_is_expired (ChamplainCache *self,
gboolean validate_cache = FALSE;
g_get_current_time (now);
- g_time_val_add (now, (-60ul * 60ul * 1000ul * 1000ul)); // Cache expires 1 hour
+ g_time_val_add (now, (-24ul * 60ul * 60ul * 1000ul * 1000ul)); // Cache expires 1 day
validate_cache = modified_time->tv_sec < now->tv_sec;
g_free (now);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]