summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ddns/Makefile
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2018-05-24 02:03:03 +0200
committerAnsuel Smith <ansuelsmth@gmail.com>2018-06-02 18:52:22 +0200
commit299121fc84b1e00650c9c976c0a847cd67e46eb0 (patch)
tree76820ad47b25f318415330d74b9a78c9e84d151b /applications/luci-app-ddns/Makefile
parent7acacf2cf806c5d74fc60f8a2de95628ba52bb7d (diff)
luci-app-ddns: improve performance
Every request directed to the ddns app call ddns tools module. Ddns tools module have lots of global variable that call slow os.execute function. This adds 10 second to every ddns request even if the function that is requested doesn't need that global variable. This commit introduce env_info function that execute os.execute command by executing what is actually requested and not process all the variables. Also remove 2 unecessary module that are not used. More researh find that major slowdown was caused by the calling of ddns script for the version check. Now we check if opkg is present and use it to check ddns-scripts version. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/Makefile')
-rw-r--r--applications/luci-app-ddns/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/Makefile b/applications/luci-app-ddns/Makefile
index bd6ddeb1b3..886b266b04 100644
--- a/applications/luci-app-ddns/Makefile
+++ b/applications/luci-app-ddns/Makefile
@@ -16,7 +16,7 @@ PKG_VERSION:=2.4.9
# Release == build
# increase on changes of translation files
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_LICENSE:=Apache-2.0
PKG_MAINTAINER:=Christian Schoenebeck <christian.schoenebeck@gmail.com>