invite pager get list only in count > 0

This commit is contained in:
xiaomlove
2022-04-22 01:00:59 +08:00
parent 287c568e79
commit 686ec2754c
4 changed files with 21 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ class Setting extends NexusModel
public static function get($name = null, $default = null)
{
$settings = NexusDB::remember("nexus_settings_in_laravel", 10, function () {
$settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () {
return self::getFromDb();
});
if (is_null($name)) {