Skip to content

Commit d98ad79

Browse files
author
Jules Lefebvre
committed
feat(frontend/admin): add cache section
Add a new section for cache attributes. Also add US translation.
1 parent 0d61344 commit d98ad79

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

frontend/src/components/admin/configuration/ConfigurationNavBar.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ import Link from "next/link";
1313
import { Dispatch, SetStateAction } from "react";
1414
import {
1515
TbAt,
16+
TbBinaryTree,
17+
TbBucket,
1618
TbMail,
19+
TbScale,
20+
TbServerBolt,
21+
TbSettings,
1722
TbShare,
1823
TbSocial,
19-
TbBucket,
20-
TbBinaryTree,
21-
TbSettings,
22-
TbScale,
2324
} from "react-icons/tb";
2425
import { FormattedMessage } from "react-intl";
2526

@@ -32,6 +33,7 @@ const categories = [
3233
{ name: "LDAP", icon: <TbBinaryTree /> },
3334
{ name: "S3", icon: <TbBucket /> },
3435
{ name: "Legal", icon: <TbScale /> },
36+
{ name: "Cache", icon: <TbServerBolt /> },
3537
];
3638

3739
const useStyles = createStyles((theme) => ({

frontend/src/i18n/translations/en-US.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ export default {
423423
"admin.config.title": "Configuration",
424424
"admin.config.category.general": "General",
425425
"admin.config.category.share": "Share",
426+
"admin.config.category.cache": "Cache",
426427
"admin.config.category.email": "Email",
427428
"admin.config.category.smtp": "SMTP",
428429
"admin.config.category.oauth": "Social Login",
@@ -446,6 +447,19 @@ export default {
446447
"Change your logo by uploading a new image. The image must be a PNG and should have the format 1:1.",
447448
"admin.config.general.logo.placeholder": "Pick image",
448449

450+
"admin.config.cache.ttl": "TTL",
451+
"admin.config.cache.ttl.description":
452+
"Time in second to keep information inside the cache.",
453+
"admin.config.cache.max-items": "Maximum items",
454+
"admin.config.cache.max-items.description":
455+
"Maximum number of items inside the cache.",
456+
"admin.config.cache.redis-enabled": "Redis enabled",
457+
"admin.config.cache.redis-enabled.description":
458+
"Normally Pingvin Share caches information in memory. If you run multiple instances of Pingvin Share, you need to enable Redis caching to share the cache between the instances.",
459+
"admin.config.cache.redis-url": "Redis URL",
460+
"admin.config.cache.redis-url.description":
461+
"Url to connect to the Redis instance used for caching.",
462+
449463
"admin.config.email.enable-share-email-recipients":
450464
"Enable email recipient sharing",
451465
"admin.config.email.enable-share-email-recipients.description":

0 commit comments

Comments
 (0)