mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Do not try to fetch latest posts in offline mode
This commit is contained in:
parent
f02986dff5
commit
15a2a34771
1 changed files with 5 additions and 0 deletions
|
|
@ -100,6 +100,11 @@ function blog_utils.updateRedis(newPosts)
|
|||
end
|
||||
|
||||
function blog_utils.fetchLatestPosts()
|
||||
|
||||
if ntop.isOffline() then
|
||||
return
|
||||
end
|
||||
|
||||
local response
|
||||
local now = os.time()
|
||||
local next_fetch = ntop.getPref(BLOG_NEXT_FEED_UPDATE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue