Added cache for modules-state RFC7895 to avoid building new XML every get call
This commit is contained in:
parent
a20865846e
commit
3c332b689f
8 changed files with 193 additions and 76 deletions
|
|
@ -95,6 +95,7 @@ backend_terminate(clicon_handle h)
|
|||
clicon_debug(1, "%s", __FUNCTION__);
|
||||
if ((ss = clicon_socket_get(h)) != -1)
|
||||
close(ss);
|
||||
modules_state_cache_set(h, NULL);
|
||||
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
||||
yspec_free(yspec);
|
||||
if ((yspec = clicon_config_yang(h)) != NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue