upload preivew + es command

This commit is contained in:
xiaomlove
2022-04-01 23:13:42 +08:00
parent 5f6b3ceb53
commit 4172f7c07c
49 changed files with 347 additions and 126 deletions

View File

@@ -275,11 +275,11 @@ class NexusDB
global $Cache;
$result = $Cache->get_value($key);
if ($result === false) {
do_log("cache miss, get from database.");
do_log("cache miss [$key], get from database.");
$result = $callback();
$Cache->cache_value($key, $result, $ttl);
} else {
do_log("cache hit.");
do_log("cache hit [$key].");
}
return $result;
} else {