mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Set ContentDB updates detection cache time to 24 hours (#14837)
This commit is contained in:
parent
3de42f56c5
commit
bb3f271a20
@ -31,7 +31,7 @@ local cache_file_path = core.get_cache_path() .. DIR_DELIM .. "cdb" .. DIR_DELIM
|
|||||||
local has_fetched = false
|
local has_fetched = false
|
||||||
local latest_releases
|
local latest_releases
|
||||||
do
|
do
|
||||||
if check_cache_age("cdb_updates_last_checked", 3 * 3600) then
|
if check_cache_age("cdb_updates_last_checked", 24 * 3600) then
|
||||||
local f = io.open(cache_file_path, "r")
|
local f = io.open(cache_file_path, "r")
|
||||||
local data = ""
|
local data = ""
|
||||||
if f then
|
if f then
|
||||||
|
Loading…
Reference in New Issue
Block a user