Skip to content

Conversation

@zhblue
Copy link

@zhblue zhblue commented Sep 3, 2024

No description provided.

zhblue and others added 30 commits October 19, 2025 17:22
Updated Docker run command formatting for clarity.
Added a fallback mechanism to download Docker image from a mirror site if the primary download fails.
This script checks and increases the file descriptor limit (nofile) on a Linux system to a target value of 65535 if the current limit is lower. It updates the necessary configuration files and reloads systemd to apply the changes.

generated by ChatGPT, not tested yet
Refactor DatabaseTool class for improved compatibility and performance. Updated array syntax and optimized character set handling.
control
首先检测系统是否支持APCu缓存扩展,然后定义mysql_query_cache()函数,该函数通过对SQL语句和参数进行MD5哈希生成缓存键,如果APCu可用则优先使用APCu进行缓存查询,命中缓存直接返回结果,未命中则执行实际查询并缓存结果(有效期10秒);如果APCu不可用则回退到memcache缓存方案(通过getCache/setCache函数),若memcache也未配置则会提示安装建议。最终返回查询结果,从而减少重复数据库查询、提升系统性能。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants