More verbose debug logging around OPDS caching (#6653)

Re #6649
reviewable/pr6656/r1
NiLuJe 4 years ago committed by GitHub
parent 135d95aa06
commit 078b579081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -365,16 +365,18 @@ function OPDSBrowser:parseFeed(item_url, username, password)
local feed_last_modified = self:fetchFeed(item_url, username, password, "HEAD")
local hash = "opds|catalog|" .. item_url
if feed_last_modified then
hash = hash .. feed_last_modified
hash = hash .. "|" .. feed_last_modified
end
local cache = CatalogCache:check(hash)
if cache then
logger.dbg("Cache hit for", hash)
feed = cache.feed
else
logger.dbg("cache", hash)
logger.dbg("Cache miss for", hash)
feed = self:fetchFeed(item_url, username, password)
if feed then
logger.dbg("Caching", hash)
CatalogCache:insert(hash, CatalogCacheItem:new{ feed = feed })
end
end

Loading…
Cancel
Save