[evolution-patches] Clear the cache before populating it [calendar]



We should clear the cache before populating it for the first time from
the server. Have attached a patch for it.

thanks, chenthill.
? clear_cache.diff
? patch
? patch_60265.diff
? patch_62866.diff
? populate_cac.diff
? recurrence.diff
? ~?
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/ChangeLog,v
retrieving revision 1.313
diff -u -r1.313 ChangeLog
--- ChangeLog	17 Aug 2004 08:21:00 -0000	1.313
+++ ChangeLog	17 Aug 2004 09:02:59 -0000
@@ -1,3 +1,9 @@
+2004-08-17  Chenthill Palanisamy <pchenthill novell com>
+	
+	* backends/groupwise/e-cal-backend-groupwise.c
+	(connect_to_server): Clear the cache before populating 
+	it.
+	
 2004-08-16  Chenthill Palanisamy <pchenthill novell com>
 	
 	* backends/groupwise/e-cal-backend-groupwise.c
Index: backends/groupwise/e-cal-backend-groupwise.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/groupwise/e-cal-backend-groupwise.c,v
retrieving revision 1.83
diff -u -r1.83 e-cal-backend-groupwise.c
--- backends/groupwise/e-cal-backend-groupwise.c	17 Aug 2004 08:26:33 -0000	1.83
+++ backends/groupwise/e-cal-backend-groupwise.c	17 Aug 2004 09:03:00 -0000
@@ -304,6 +304,9 @@
 					return GNOME_Evolution_Calendar_OtherError;
 				}
 
+			/* Clear the cache before populating it */
+			e_file_cache_clean (E_FILE_CACHE (priv->cache));
+				
 			/* Populate the cache for the first time.*/
 			/* start a timed polling thread set to 10 minutes*/
 			cnc_status = populate_cache (cbgw);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]