mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Migrate alertable disabled alerts preference to lua
This avoids performing multiple hget on redis, thus increasing performance
This commit is contained in:
parent
a96a90b65f
commit
54140b6f1a
14 changed files with 116 additions and 133 deletions
|
|
@ -3385,6 +3385,17 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
-- @brief Deletes all the cache/prefs keys matching the pattern
|
||||
function deleteCachePattern(pattern)
|
||||
local keys = ntop.getKeysCache(pattern)
|
||||
|
||||
for key in pairs(keys or {}) do
|
||||
ntop.delCache(key)
|
||||
end
|
||||
end
|
||||
|
||||
-- ###########################################
|
||||
|
||||
--
|
||||
-- IMPORTANT
|
||||
-- Leave it at the end so it can use the functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue