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
2025-03-05 17:47:19 +08:00
2025-07-07 12:09:52 +08:00
2025-11-24 18:27:54 +08:00
2025-12-31 09:03:56 +08:00
2024-04-07 11:59:42 +08:00
2025-11-24 18:27:54 +08:00
2025-07-07 12:09:52 +08:00
2022-08-17 09:37:30 +08:00
2025-03-05 17:47:19 +08:00
2025-03-05 17:47:19 +08:00

1Panel

1Panel-dev%2F1Panel | Trendshift

License: GPL v3 Codacy chat on Discord GitHub release Stars

English 中文(简体) 日本語 Português (Brasil) العربية Deutsch Español
français 한국어 Bahasa Indonesia 中文(繁體) Türkçe Русский Bahasa Melayu


What is 1Panel?

Take control of your VPS with 1Panel.

1Panel is a modern, open-source VPS control panel that streamlines administration through an intuitive, clean web interface.

Key Features

🔹 One-Click OpenClaw Deployment
Seamlessly deploy OpenClaw agents, host local LLMs via Ollama, and monitor GPU utilization—all within a unified workspace.

🔹 One-Click Website Deployment
Launch production-ready websites instantly with automatic domain binding, SSL certificate provisioning, and configuration—zero manual setup required.

🔹 Curated App Marketplace
Discover, install, and update trusted open-source applications (WordPress, MySQL, Redis, and more) with a single click.

🔹 Centralized Server Management
Monitor system resources and manage files, databases, containers, and services effortlessly through a unified, intuitive dashboard.

🔹 Enterprise-Grade Security
Strengthen defenses with container isolation, firewall controls, audit logging, and secure deployment practices—ensuring compliance and peace of mind.

🔹 Intelligent Backup & Restore
Schedule automated backups or perform instant restores to local storage or leading cloud platforms (AWS S3, Cloudflare R2, and more), with flexible retention and destination options.

Quick Start

Execute the script below and follow the prompts to install 1Panel:

bash -c "$(curl -sSL https://resource.fit2cloud.com/1panel/package/v2/quick_start.sh)"

Screenshot

UI Display

Star History

Star History Chart

Pro Edition

Compared to the OSS Edition, 1Panel Pro Edition provides users with a wealth of enhanced features and technical support services. Enhanced features include WAF enhancement, website tamper protection, website monitoring, GPU monitoring, custom logo and theme color, etc. Click to view the detailed introduction of the Pro Edition.

Security Information

If you discover any security issues, please refer to SECURITY.md.

License

Licensed under The GNU General Public License version 3 (GPLv3) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.gnu.org/licenses/gpl-3.0.html

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

S
Description
🔥 1Panel is a modern, open-source Linux server management panel and a lightweight AI management platform.
Readme GPL-3.0
142 MiB
Languages
Go 73.1%
Vue 26.8%