mirror of https://github.com/halo-dev/halo
#### What type of PR is this? /kind feature /area core #### What this PR does / why we need it: This PR adds dependency [spring-boot-starter-cache](https://docs.spring.io/spring-boot/docs/current/reference/html/io.html#io.caching) as cache framework and [caffeine](https://github.com/ben-manes/caffeine/wiki) as cache implementation to cache template rendering result. By default, we disable the cache feature. If you want to enable it, please try to configure properties like this: ```yaml halo: cache: disabled: false ``` #### Which issue(s) this PR fixes: Fixes #2827 #### Special notes for your reviewer: 1. Start Halo 2. Browse any page twice 3. See the difference in request times #### Does this PR introduce a user-facing change? ```release-note 支持模板渲染结果缓存 ``` |
||
|---|---|---|
| .. | ||
| src | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierrc.js | ||
| README.md | ||
| build.config.ts | ||
| openapitools.json | ||
| package.json | ||
| tsconfig.json | ||
README.md
@halo-dev/api-client
Halo 2.0 的 JavaScript API 客户端请求库。使用 OpenAPI Generator 生成。
开发环境
pnpm install
# 根据 OpenAPI 3.0 生成类型和网络请求的代码,此步骤需要启动 Halo 2.0 后端。
pnpm gen
pnpm build
发布版本
pnpm release