diff --git a/app/Actions/Diagnostics/Errors.php b/app/Actions/Diagnostics/Errors.php
index e6d53412fbd..181cc34dca0 100644
--- a/app/Actions/Diagnostics/Errors.php
+++ b/app/Actions/Diagnostics/Errors.php
@@ -11,6 +11,7 @@
use App\Actions\Diagnostics\Pipes\Checks\AdminUserExistsCheck;
use App\Actions\Diagnostics\Pipes\Checks\AppUrlMatchCheck;
use App\Actions\Diagnostics\Pipes\Checks\BasicPermissionCheck;
+use App\Actions\Diagnostics\Pipes\Checks\CachePasswordCheck;
use App\Actions\Diagnostics\Pipes\Checks\ConfigSanityCheck;
use App\Actions\Diagnostics\Pipes\Checks\CountSizeVariantsCheck;
use App\Actions\Diagnostics\Pipes\Checks\DBIntegrityCheck;
@@ -54,6 +55,7 @@ class Errors
SmallMediumExistsCheck::class,
PlaceholderExistsCheck::class,
CountSizeVariantsCheck::class,
+ CachePasswordCheck::class,
SupporterCheck::class,
];
diff --git a/app/Actions/Diagnostics/Pipes/Checks/CachePasswordCheck.php b/app/Actions/Diagnostics/Pipes/Checks/CachePasswordCheck.php
new file mode 100644
index 00000000000..35e42ef4a16
--- /dev/null
+++ b/app/Actions/Diagnostics/Pipes/Checks/CachePasswordCheck.php
@@ -0,0 +1,38 @@
+whereNotNull('password')->count() > 0) {
+ $data[] = DiagnosticData::warn('Response cache is enabled and some albums are password protected.', self::class, ['Due to response caching, unlocking those albums will reveal their content to other annonymous users.']);
+ }
+
+ return $next($data);
+ }
+}
diff --git a/app/Http/Resources/Rights/AlbumRightsResource.php b/app/Http/Resources/Rights/AlbumRightsResource.php
index 342ad72a0da..89cc8e329f3 100644
--- a/app/Http/Resources/Rights/AlbumRightsResource.php
+++ b/app/Http/Resources/Rights/AlbumRightsResource.php
@@ -10,6 +10,7 @@
use App\Contracts\Models\AbstractAlbum;
use App\Models\Album;
+use App\Models\Configs;
use App\Policies\AlbumPolicy;
use Illuminate\Support\Facades\Gate;
use Spatie\LaravelData\Data;
@@ -27,6 +28,7 @@ class AlbumRightsResource extends Data
public bool $can_delete = false;
public bool $can_transfer = false;
public bool $can_access_original = false;
+ public bool $can_pasword_protect = false;
/**
* Given an album, returns the access rights associated to it.
@@ -42,5 +44,6 @@ public function __construct(?AbstractAlbum $abstractAlbum)
$this->can_delete = Gate::check(AlbumPolicy::CAN_DELETE, [AbstractAlbum::class, $abstractAlbum]);
$this->can_transfer = Gate::check(AlbumPolicy::CAN_TRANSFER, [AbstractAlbum::class, $abstractAlbum]);
$this->can_access_original = Gate::check(AlbumPolicy::CAN_ACCESS_FULL_PHOTO, [AbstractAlbum::class, $abstractAlbum]);
+ $this->can_pasword_protect = !Configs::getValueAsBool('cache_enabled');
}
}
diff --git a/lang/cz/dialogs.php b/lang/cz/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/cz/dialogs.php
+++ b/lang/cz/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/cz/settings.php b/lang/cz/settings.php
index fd197f11135..00559112486 100644
--- a/lang/cz/settings.php
+++ b/lang/cz/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/de/dialogs.php b/lang/de/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/de/dialogs.php
+++ b/lang/de/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/de/settings.php b/lang/de/settings.php
index fd197f11135..00559112486 100644
--- a/lang/de/settings.php
+++ b/lang/de/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/el/dialogs.php b/lang/el/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/el/dialogs.php
+++ b/lang/el/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/el/settings.php b/lang/el/settings.php
index fd197f11135..00559112486 100644
--- a/lang/el/settings.php
+++ b/lang/el/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/en/dialogs.php b/lang/en/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/en/dialogs.php
+++ b/lang/en/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/en/settings.php b/lang/en/settings.php
index fd197f11135..00559112486 100644
--- a/lang/en/settings.php
+++ b/lang/en/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/es/dialogs.php b/lang/es/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/es/dialogs.php
+++ b/lang/es/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/es/settings.php b/lang/es/settings.php
index fd197f11135..00559112486 100644
--- a/lang/es/settings.php
+++ b/lang/es/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/fr/dialogs.php b/lang/fr/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/fr/dialogs.php
+++ b/lang/fr/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/fr/settings.php b/lang/fr/settings.php
index fd197f11135..00559112486 100644
--- a/lang/fr/settings.php
+++ b/lang/fr/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/hu/dialogs.php b/lang/hu/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/hu/dialogs.php
+++ b/lang/hu/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/hu/settings.php b/lang/hu/settings.php
index fd197f11135..00559112486 100644
--- a/lang/hu/settings.php
+++ b/lang/hu/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/it/dialogs.php b/lang/it/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/it/dialogs.php
+++ b/lang/it/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/it/settings.php b/lang/it/settings.php
index fd197f11135..00559112486 100644
--- a/lang/it/settings.php
+++ b/lang/it/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/ja/dialogs.php b/lang/ja/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/ja/dialogs.php
+++ b/lang/ja/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/ja/settings.php b/lang/ja/settings.php
index fd197f11135..00559112486 100644
--- a/lang/ja/settings.php
+++ b/lang/ja/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/nl/dialogs.php b/lang/nl/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/nl/dialogs.php
+++ b/lang/nl/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/nl/settings.php b/lang/nl/settings.php
index fd197f11135..00559112486 100644
--- a/lang/nl/settings.php
+++ b/lang/nl/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/no/dialogs.php b/lang/no/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/no/dialogs.php
+++ b/lang/no/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/no/settings.php b/lang/no/settings.php
index fd197f11135..00559112486 100644
--- a/lang/no/settings.php
+++ b/lang/no/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/pl/dialogs.php b/lang/pl/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/pl/dialogs.php
+++ b/lang/pl/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/pl/settings.php b/lang/pl/settings.php
index fd197f11135..00559112486 100644
--- a/lang/pl/settings.php
+++ b/lang/pl/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/pt/dialogs.php b/lang/pt/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/pt/dialogs.php
+++ b/lang/pt/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/pt/settings.php b/lang/pt/settings.php
index fd197f11135..00559112486 100644
--- a/lang/pt/settings.php
+++ b/lang/pt/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/ru/dialogs.php b/lang/ru/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/ru/dialogs.php
+++ b/lang/ru/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/ru/settings.php b/lang/ru/settings.php
index fd197f11135..00559112486 100644
--- a/lang/ru/settings.php
+++ b/lang/ru/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/sk/dialogs.php b/lang/sk/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/sk/dialogs.php
+++ b/lang/sk/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/sk/settings.php b/lang/sk/settings.php
index fd197f11135..00559112486 100644
--- a/lang/sk/settings.php
+++ b/lang/sk/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/sv/dialogs.php b/lang/sv/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/sv/dialogs.php
+++ b/lang/sv/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/sv/settings.php b/lang/sv/settings.php
index fd197f11135..00559112486 100644
--- a/lang/sv/settings.php
+++ b/lang/sv/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/vi/dialogs.php b/lang/vi/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/vi/dialogs.php
+++ b/lang/vi/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/vi/settings.php b/lang/vi/settings.php
index fd197f11135..00559112486 100644
--- a/lang/vi/settings.php
+++ b/lang/vi/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/zh_CN/dialogs.php b/lang/zh_CN/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/zh_CN/dialogs.php
+++ b/lang/zh_CN/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/zh_CN/settings.php b/lang/zh_CN/settings.php
index fd197f11135..00559112486 100644
--- a/lang/zh_CN/settings.php
+++ b/lang/zh_CN/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/lang/zh_TW/dialogs.php b/lang/zh_TW/dialogs.php
index 4afd65fae3f..d2ac537c259 100644
--- a/lang/zh_TW/dialogs.php
+++ b/lang/zh_TW/dialogs.php
@@ -107,6 +107,7 @@
'password' => 'Password',
'password_prot' => 'Password protected',
'password_prot_expl' => 'Anonymous users need a shared password to access this album.',
+ 'password_prop_not_compatible' => 'Response cache is conflicting with this setting.
Due to response caching, unlocking this album will
also reveal its content to other annonymous users.',
'nsfw' => 'Sensitive',
'nsfw_expl' => 'Album contains sensitive content.',
'visibility_updated' => 'Visibility updated.',
diff --git a/lang/zh_TW/settings.php b/lang/zh_TW/settings.php
index fd197f11135..00559112486 100644
--- a/lang/zh_TW/settings.php
+++ b/lang/zh_TW/settings.php
@@ -35,6 +35,8 @@
'language' => 'Language used by Lychee',
'nsfw_album_visibility' => 'Make Sensitive albums visible by default.',
'nsfw_album_explanation' => 'If the album is public, it is still accessible, just hidden from the view and can be revealed by pressing H.',
+ 'cache_enabled' => 'Enable caching of responses.',
+ 'cache_enabled_details' => 'This will significantly speed up the response time of Lychee.
If you are using password protected albums, you should not enable this.',
],
'lychee_se' => [
'header' => 'Lychee SE',
diff --git a/resources/js/components/forms/album/AlbumVisibility.vue b/resources/js/components/forms/album/AlbumVisibility.vue
index 4c03ed6ced0..fcdca53f909 100644
--- a/resources/js/components/forms/album/AlbumVisibility.vue
+++ b/resources/js/components/forms/album/AlbumVisibility.vue
@@ -13,9 +13,8 @@
:class="is_public ? 'text-muted-color-emphasis' : 'text-muted-color'"
>
{{ $t("dialogs.visibility.hidden_expl") }}
@@ -41,9 +34,8 @@ :class="is_public ? 'text-muted-color-emphasis' : 'text-muted-color'" >{{ $t("dialogs.visibility.downloadable_expl") }}