[elm_config] cache_flush_enable is adapted for re_cache
authorWooHyun Jung <wh0705.jung@samsung.com>
Mon, 24 Jan 2011 12:16:43 +0000 (21:16 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Mon, 24 Jan 2011 12:16:43 +0000 (21:16 +0900)
src/lib/elm_config.c

index 2003574..f0f5a1a 100644 (file)
@@ -1095,12 +1095,15 @@ _elm_recache(void)
         ecore_poller_del(_elm_cache_flush_poller);
         _elm_cache_flush_poller = NULL;
      }
-   if (_elm_config->cache_flush_poll_interval > 0)
+   if (_elm_config->cache_flush_enable)
      {
-        _elm_cache_flush_poller =
-          ecore_poller_add(ECORE_POLLER_CORE,
-                           _elm_config->cache_flush_poll_interval,
-                           _elm_cache_flush_cb, NULL);
+        if (_elm_config->cache_flush_poll_interval > 0)
+          {
+             _elm_cache_flush_poller =
+                ecore_poller_add(ECORE_POLLER_CORE,
+                                 _elm_config->cache_flush_poll_interval,
+                                 _elm_cache_flush_cb, NULL);
+          }
      }
 }