Commit count num in cache data will not be refreshed #10318

Closed
opened 2025-11-02 09:04:11 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @yp05327 on GitHub (Feb 22, 2023).

Description

Relate to https://github.com/go-gitea/gitea/issues/22621#issuecomment-1439306976
It seems that commit count num in cache data will not be refreshed in the latest version.
But in try.gitea.io it works well. (Why? It seems that there are no changes related to this in recent)
Can anyone reproduce this too?

I added:

cache.Remove(repo.GetCommitsCountCacheKey(opts.NewBranch, true))

then the count nun will refresh after apping a partch.

Related functions maybe as following:
image

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

Originally created by @yp05327 on GitHub (Feb 22, 2023). ### Description Relate to https://github.com/go-gitea/gitea/issues/22621#issuecomment-1439306976 It seems that commit count num in cache data will not be refreshed in the latest version. But in try.gitea.io it works well. (Why? It seems that there are no changes related to this in recent) Can anyone reproduce this too? I added: ``` cache.Remove(repo.GetCommitsCountCacheKey(opts.NewBranch, true)) ``` then the count nun will refresh after apping a partch. Related functions maybe as following: ![image](https://user-images.githubusercontent.com/18380374/220522060-399ecd57-9686-465b-8a45-59d643138e6d.png) ### Gitea Version latest ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? build ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:04:11 -06:00
Author
Owner

@lunny commented on GitHub (Feb 22, 2023):

try.gitea.io will always follow the latest version automatically.

@lunny commented on GitHub (Feb 22, 2023): `try.gitea.io` will always follow the latest version automatically.
Author
Owner

@yp05327 commented on GitHub (Feb 22, 2023):

I tested this issue on another pc again and it worked well. So I close this issue.

@yp05327 commented on GitHub (Feb 22, 2023): I tested this issue on another pc again and it worked well. So I close this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10318