Disable Swagger cache in development environment (#5200)

#### What type of PR is this?

/kind improvement
/area  core

#### What this PR does / why we need it:

When we are developing a plugin in development environment, APIs in plugin are frequently changed. But they are not reflected in Swagger UI instantly unless we restart Halo entirely.

This PR disables Swagger cache in that case.

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/5177/head^2
John Niang 2024-01-18 10:52:06 +08:00 committed by GitHub
parent 3de60dd938
commit 86e688a15d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ logging:
run.halo.app: DEBUG
org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler: DEBUG
springdoc:
cache:
disabled: true
api-docs:
enabled: true
version: OPENAPI_3_1