diff --git a/app/Helpers/Options.php b/app/Helpers/Options.php index 527eac9..9fffca9 100755 --- a/app/Helpers/Options.php +++ b/app/Helpers/Options.php @@ -30,6 +30,7 @@ class Options public function getOption(string $option): string { $value = Cache::get($option); + if (is_null($value)) { Log::debug('Option '.$option.'not found in cache, refreshing from database'); @@ -37,7 +38,7 @@ class Options if (is_null($value)) { throw new \Exception('This option does not exist.'); } - Cache::put($option, $value); + Cache::put($option, $value->option_value); Cache::put($option.'_desc', 'Undefined description'); return $value->option_value; diff --git a/resources/views/dashboard/administration/settings.blade.php b/resources/views/dashboard/administration/settings.blade.php index 5c5f39b..514e403 100755 --- a/resources/views/dashboard/administration/settings.blade.php +++ b/resources/views/dashboard/administration/settings.blade.php @@ -47,7 +47,7 @@
Disabled: No security policy will be enforced. This is insecure.
@@ -166,7 +166,7 @@Leave this field blank to disable. Users will be forced to reset their password after the specified time.
+Leave this field zeroed to disable. Users will be forced to reset their password after the specified time.