# 性能优化与功能改进，Halo 2.13 发布

原文：<https://www.halo.run/archives/halo-2.13-released>

Halo 是一款强大易用的开源建站工具，它让你无需太多的技术知识就可以快速搭建一个博客、网站或者内容管理系统。具备可插拔架构、主题套用、富文本编辑器等多重特性，支持用户根据自己的喜好选择不同类型的插件及主题模板来定制化自己的站点功能及外观。让内容创作和发布更加便捷生动。

截至目前（2023 年 Q4 季度），Halo 已经在 Docker Hub 获得了超过 200 万次下载，GitHub Star 数突破 30 k，并拥有一百多名社区贡献者。

2024 年 03 月 01 日，强大易用的开源建站工具 Halo 正式发布 2.13.0 版本。

在这个版本中，Halo 主要优化了部分业务的查询效率，以及其他 20 多项功能优化和问题修复。

## 新特性

-   使用索引机制优化用户查询以提高性能。 by [@guqing](https://github.com/guqing) in [#5396](https://github.com/halo-dev/halo/pull/5396)
    
-   使用索引功能优化附件列表查询。 by [@guqing](https://github.com/guqing) in [#5363](https://github.com/halo-dev/halo/pull/5363)
    
-   使用索引机制优化通知和订阅查询以提高性能。 by [@guqing](https://github.com/guqing) in [#5414](https://github.com/halo-dev/halo/pull/5414)
    
-   增加对用户注册时必须验证邮箱的支持。 by [@mashirot](https://github.com/mashirot) in [#5320](https://github.com/halo-dev/halo/pull/5320)
    
-   重构编辑器视频组件的上传逻辑，增加选择文件上传、上传进度条、取消、重试等机制。 by [@LIlGG](https://github.com/LIlGG) in [#5302](https://github.com/halo-dev/halo/pull/5302)
    

## 功能优化

-   优化登录相关页面的布局，修复在不同分辨率下的样式问题。 by [@ruibaby](https://github.com/ruibaby) in [#5413](https://github.com/halo-dev/halo/pull/5413)
    
-   为插件静态代理资源增加缓存控制以减少不必要的请求。 by [@guqing](https://github.com/guqing) in [#5392](https://github.com/halo-dev/halo/pull/5392)
    
-   避免个人令牌长度随着角色信息增长。 by [@JohnNiang](https://github.com/JohnNiang) in [#5374](https://github.com/halo-dev/halo/pull/5374)
    
-   移除启动时不必要的搜索引擎索引构建步骤。 by [@guqing](https://github.com/guqing) in [#5332](https://github.com/halo-dev/halo/pull/5332)
    
-   优化查询视图构建只选择被使用到的索引字段构建查询视图。 by [@guqing](https://github.com/guqing) in [#5312](https://github.com/halo-dev/halo/pull/5312)
    

## 问题修复

-   修复开启两步验证但未配置 TOTP 可能无法登录的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5400](https://github.com/halo-dev/halo/pull/5400)
    
-   解决个人中心文章设置时报错的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5370](https://github.com/halo-dev/halo/pull/5370)
    
-   修复 Console 中用户头像无法正确获取的问题。 by [@ruibaby](https://github.com/ruibaby) in [#5369](https://github.com/halo-dev/halo/pull/5369)
    
-   解决默认富文本编辑器表格前字符无法被编辑的问题。 by [@LIlGG](https://github.com/LIlGG) in [#5365](https://github.com/halo-dev/halo/pull/5365)
    
-   修复事务未提交便触发控制器执行可能导致数据状态不正确的问题。 by [@guqing](https://github.com/guqing) in [#5323](https://github.com/halo-dev/halo/pull/5323)
    
-   修复因限制分页参数导致部分主题页面无法正常渲染的问题。 by [@JohnNiang](https://github.com/JohnNiang) in [#5311](https://github.com/halo-dev/halo/pull/5311)
    
-   修复启动时 GcSynchronizer 没有精准过滤出所需数据导致内存占用会出现较高峰值的问题。 by [@guqing](https://github.com/guqing) in [#5325](https://github.com/halo-dev/halo/pull/5325)
    

## 依赖更新

-   升级依赖 Spring Boot 至 3.2.3。 by [@JohnNiang](https://github.com/JohnNiang) in [#5402](https://github.com/halo-dev/halo/pull/5402)
    
-   升级 Vue 生态相关依赖至最新版本。 by [@ruibaby](https://github.com/ruibaby) in [#5384](https://github.com/halo-dev/halo/pull/5384)
    
-   升级 Axios 依赖版本至 1.6.x。 by [@ruibaby](https://github.com/ruibaby) in [#5383](https://github.com/halo-dev/halo/pull/5383)
    
-   升级 Tiptap 依赖至 [2.2.3](https://github.com/ueberdosis/tiptap/releases/tag/v2.2.3)。 by [@ruibaby](https://github.com/ruibaby) in [#5382](https://github.com/halo-dev/halo/pull/5382)
    
-   升级 FormKit 的依赖版本至 1.5.x。 by [@ruibaby](https://github.com/ruibaby) in [#5395](https://github.com/halo-dev/halo/pull/5395)
    
-   更新预设插件的版本。 by [@ruibaby](https://github.com/ruibaby) in [#5423](https://github.com/halo-dev/halo/pull/5423)
    
-   升级 Docker 镜像的运行环境至 JRE 21。 by [@JohnNiang](https://github.com/JohnNiang) in [#5341](https://github.com/halo-dev/halo/pull/5341)
    

## 开发者相关

-   提供认证相关的 WebFilter 扩展点。 by [@JohnNiang](https://github.com/JohnNiang) in [#5386](https://github.com/halo-dev/halo/pull/5386)
    

## 文档

[https://docs.halo.run](https://docs.halo.run/)

## 资源

适用于 2.0 的插件和主题可查阅：

-   [https://www.halo.run/store/apps](https://www.halo.run/store/apps)
    
-   [https://github.com/halo-sigs/awesome-halo](https://github.com/halo-sigs/awesome-halo)
    

**Full Changelog**: [v2.12.0...v2.13.0](https://github.com/halo-dev/halo/compare/v2.12.0...v2.13.0)
