This commit is contained in:
2020-12-27 22:22:22 +01:00
parent 0ee875f3fc
commit 321c26301d
4 changed files with 42 additions and 38 deletions
+4 -1
View File
@@ -60,7 +60,9 @@ class osu_parser
if (!$skip_cache)
{
$cached = $this->cacher->get_cache($path, hash_file("md5", $path));
$hash = hash_file(osu_cacher::$hash_function, $path);
$cached = $this->cacher->get_cache($path, $hash);
if ($cached !== false) return $cached;
}
@@ -215,6 +217,7 @@ class osu_parser
$time_end = microtime(true);
$parsing_time = $time_end - $time_start;
$parsed["parsing_time"] = $parsing_time;
if (!empty($hash)) $parsed["hash"] = $hash;
if (!$skip_cache)
{