mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
invite pager get list only in count > 0
This commit is contained in:
@@ -284,7 +284,7 @@ function get_setting($name = null, $default = null): mixed
|
||||
{
|
||||
static $settings;
|
||||
if (is_null($settings)) {
|
||||
$settings = \Nexus\Database\NexusDB::remember("nexus_settings_in_nexus", 10, function () {
|
||||
$settings = \Nexus\Database\NexusDB::remember("nexus_settings_in_nexus", 600, function () {
|
||||
//get all settings from database
|
||||
return \App\Models\Setting::getFromDb();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user