From e6b895c9c11bd5bbf47aaa32f292473a2d96a1f6 Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Mon, 24 Jul 2006 13:09:34 +0000 Subject: Patch to split the cache into multiple files based on the type of objects 2006-07-24 Harish Krishnaswamy Patch to split the cache into multiple files based on the type of objects it stores. This substantially reduces the primary memory requirements of Evolution and EDS for providers like GW, Exchange that manipulate event/tasks/journals together. * backends/caldav/e-cal-backend-caldav.c: (initialize_backend): * backends/groupwise/e-cal-backend-groupwise.c: (connect_to_server), (e_cal_backend_groupwise_open): * backends/http/e-cal-backend-http.c: (e_cal_backend_http_open): * backends/weather/e-cal-backend-weather.c: (e_cal_backend_weather_open): Update e_cal_backend_cache_new calls with an additional source type argument. * libecal/e-cal.[ch]: (e_cal_source_type_enum_get_type): Implement the function. * libedata-cal/e-cal-backend-cache.c: (get_filename_from_uri), (e_cal_backend_cache_set_property), (e_cal_backend_cache_get_property), (e_cal_backend_cache_constructor), (e_cal_backend_cache_class_init), (e_cal_backend_cache_new): Compute the cache destination using the source type. * libedata-cal/e-cal-backend-cache.h: Include header e-cal.h. --- calendar/backends/weather/e-cal-backend-weather.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/backends/weather') diff --git a/calendar/backends/weather/e-cal-backend-weather.c b/calendar/backends/weather/e-cal-backend-weather.c index f65dde992..8a8a23020 100644 --- a/calendar/backends/weather/e-cal-backend-weather.c +++ b/calendar/backends/weather/e-cal-backend-weather.c @@ -444,7 +444,7 @@ e_cal_backend_weather_open (ECalBackendSync *backend, EDataCal *cal, gboolean on priv->city = g_strdup (strrchr (uri, '/') + 1); if (!priv->cache) { - priv->cache = e_cal_backend_cache_new (uri); + priv->cache = e_cal_backend_cache_new (uri, E_CAL_SOURCE_TYPE_EVENT); if (!priv->cache) { e_cal_backend_notify_error (E_CAL_BACKEND (cbw), _("Could not create cache file")); -- cgit v1.2.1