mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Reworked notifications and fixed a bug that caused them to be fetched too often putting pressure on the blog feed
This commit is contained in:
parent
014d23f5d1
commit
3449593087
8 changed files with 143 additions and 123 deletions
|
|
@ -3805,10 +3805,11 @@ end
|
|||
--- @return string message If there is a new major release then return a non-nil string
|
||||
--- containing the update message.
|
||||
function check_latest_major_release()
|
||||
|
||||
-- get the latest major release
|
||||
local latest_version = ntop.getCache("ntopng.cache.major_release")
|
||||
|
||||
-- tprint(debug.traceback())
|
||||
|
||||
if isEmptyString(latest_version) then
|
||||
local rsp = ntop.httpGet("https://www.ntop.org/ntopng.version", "", "", 10 --[[ seconds ]])
|
||||
|
||||
|
|
@ -3820,7 +3821,6 @@ function check_latest_major_release()
|
|||
end
|
||||
|
||||
ntop.setCache("ntopng.cache.major_release", latest_version, 86400 --[[ recheck interval]])
|
||||
|
||||
end
|
||||
|
||||
return get_version_update_msg(info, latest_version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue