mirror of
https://github.com/pi-hole/web.git
synced 2026-04-24 02:39:25 +01:00
Check for updates every two days
Signed off by WaLLy3K <wally3k@pi-hole.net>
This commit is contained in:
@@ -51,8 +51,8 @@ if(is_readable($versionfile))
|
||||
// Obtain latest time stamp from buffer file
|
||||
$versions = explode(",",file_get_contents($versionfile));
|
||||
|
||||
// Is last check for updates older than 30 minutes?
|
||||
if($timestamp >= intval($versions[0]) + 1800)
|
||||
// Is last check for updates older than 48 hours?
|
||||
if($timestamp >= intval($versions[0]) + 172800)
|
||||
{
|
||||
// Yes: Retrieve new/updated version data
|
||||
$check_version = true;
|
||||
|
||||
Reference in New Issue
Block a user