mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
upload preivew + es command
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user