]> source.dussan.org Git - gitea.git/commit
Fix system config cache expiration timing (#28072) (#28090)
authorGiteabot <teabot@gitea.io>
Thu, 16 Nov 2023 13:37:57 +0000 (21:37 +0800)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2023 13:37:57 +0000 (21:37 +0800)
commit9f63d27ec4041897bb393a5f132af609a4988bf2
treedd1c1f39568b3c7754f69eb882f33ccc87f1e5a4
parent073d8c50dd78264bae824df10210546b3f87c7d5
Fix system config cache expiration timing (#28072) (#28090)

Backport #28072

To avoid unnecessary database access, the `cacheTime` should always be
set if the revision has been checked.

Fix #28057

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
models/system/setting.go