Commit Graph

10 Commits

Author SHA1 Message Date
4a51db4764 fix: Fix the issue of menu loss caused by switching service regions (#13602)
* fix: Fix the issue of menu loss caused by switching service regions

* fix: Fix the issue of menu loss caused by switching service regions
2026-08-20 18:28:41 +08:00
KOMATA
5209275f28 feat: Implement caching for settings retrieval and update logic (#11886)
* feat: Implement caching for settings retrieval and update logic

- Introduced a caching mechanism for settings using go-cache to improve performance.
- Updated the Create, Update, and UpdateOrCreate methods to cache values after database operations.
- Modified the Get and GetValueByKey methods to utilize the cache for faster access.
- Adjusted middleware to use the new GetValueByKey method for retrieving settings, enhancing code consistency.

* feat: Enhance setting cache management with dynamic TTL

- Introduced a function to determine cache TTL based on setting keys, allowing critical settings to have shorter cache durations.
- Updated cache logic in Create, Update, Get, and GetValueByKey methods to utilize the new TTL management, improving performance and consistency in settings retrieval.

* refactor: Simplify setting cache TTL management

- Removed the dynamic TTL function and standardized the cache TTL to a fixed duration for all settings.
- Updated cache logic in Create, Update, Get, and GetValueByKey methods to use the new fixed TTL, enhancing code clarity and maintainability.
- Added a new function to restart the core service after resetting settings, improving the reset command's functionality.

* refactor: Remove core restart functionality from reset commands

- Eliminated the restartCoreAfterReset function to simplify the reset command logic.
- Updated reset commands to return nil after setting changes, enhancing clarity and reducing unnecessary complexity.
2026-02-25 16:40:20 +08:00
e2efa20582 feat: Menu supports restoring default values (#10658) 2025-10-16 14:40:09 +08:00
ChengPlay
0b581b748b feat: Change sync customAppConfig logic (#8509) 2025-04-29 07:57:56 +00:00
zhengkunwang
88684c7cf0 feat: Update Login Page (#7815) 2025-02-07 10:15:20 +00:00
ssongliu
8283cd7d02 feat: adjust internationalization errors and the positions of global … (#7767) 2025-01-24 03:00:07 +00:00
ssongliu
841d1a31bf pref: Adjust node editing logic (#7217) 2024-11-30 19:42:41 +08:00
ssongliu
f79adc9bc0 feat: 概览页支持调整应用显示 (#6892)
Refs #4862 #3819
2024-10-30 07:58:40 +00:00
ssongliu
a44c4d96d8 fix: 优化 repo 部分公共方法 (#6200) 2024-08-21 10:04:51 +00:00
ssongliu
2ef7b8b3b1 feat: core 功能代码拆分 2024-07-19 19:04:11 +08:00