static int method_pause(struct dynamicbox_event_arg *arg, void *data)
{
dbox_pause_all();
+
if (s_info.ping_timer) {
ecore_timer_freeze(s_info.ping_timer);
}
-// if (dbox_is_secured()) {
- ErrPrint("cache flush is ignored\n");
-// } else {
-// elm_cache_all_flush();
-// sqlite3_release_memory(DYNAMICBOX_CONF_SQLITE_FLUSH_MAX);
-// malloc_trim(0);
-// }
+ if (DYNAMICBOX_CONF_AUTO_CACHE_FLUSH) {
+ elm_cache_all_flush();
+ sqlite3_release_memory(DYNAMICBOX_CONF_SQLITE_FLUSH_MAX);
+ malloc_trim(0);
+ }
return DBOX_STATUS_ERROR_NONE;
}
ret = dbox_pause(arg->pkgname, arg->id);
-// if (dbox_is_secured()) {
- ErrPrint("cache flush is ignored\n");
-// } else {
-// elm_cache_all_flush();
-// sqlite3_release_memory(DYNAMICBOX_CONF_SQLITE_FLUSH_MAX);
-// malloc_trim(0);
- // }
+ if (DYNAMICBOX_CONF_AUTO_CACHE_FLUSH) {
+ elm_cache_all_flush();
+ sqlite3_release_memory(DYNAMICBOX_CONF_SQLITE_FLUSH_MAX);
+ malloc_trim(0);
+ }
return ret;
}