Save date of fetching build to fileinfo database

This commit is contained in:
mkuba50
2019-02-08 17:20:28 +01:00
parent e32d7446ca
commit 767de7a1a5
4 changed files with 39 additions and 9 deletions

View File

@ -222,7 +222,7 @@ function uupGetFiles(
}
function uupGetOnlineFiles($updateId, $rev, $info, $cacheRequests) {
$cacheHash = hash('sha1', strtolower("api-get-${updateId}_rev.$rev"));
$cacheHash = hash('sha256', strtolower("api-get-${updateId}_rev.$rev"));
$cached = 0;
if(file_exists('cache/'.$cacheHash.'.json.gz') && $cacheRequests == 1) {