-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caching issue is back #28057
Comments
How many times the query occupied? |
3289 times on the start page. My start page needs After the upgrade to 1.21.0. Like in #22299 |
Do you have the full log? I think I know the problem now. Will propose a fix. |
-> Fix system config cache expiration timing #28072 |
Do you still need that? |
Not needed now, thank you very much! |
@wxiaoguang why is the query (in my case 3228 times)
needed on the http://domain/git/org/orgname/dashboard page for every orga? For the orga list? |
Because the "cache time" is not updated correctly, it is a bug. That's why #28072 fixes it. |
@wxiaoguang I know that this is fixed. But I try to understand why so much queries are needed on the Dashboard page for an orga. But it make no sense to show the orga list on the dashboard page. |
To avoid unnecessary database access, the `cacheTime` should always be set if the revision has been checked. Fix #28057
To avoid unnecessary database access, the `cacheTime` should always be set if the revision has been checked. Fix go-gitea#28057
The avatar module needs to read system settings to decide how to render an avatar. 1.21 contains an enhancement for the setting system, it brings the bug: the system setting revision was read again and again. |
To avoid unnecessary database access, the `cacheTime` should always be set if the revision has been checked. Fix go-gitea#28057
To avoid unnecessary database access, the `cacheTime` should always be set if the revision has been checked. Fix go-gitea#28057
Description
I see this
2023/11/14 18:23:54 models/db/context.go:178:GetByBean() [I] [SQL] SELECT "id", "setting_key", "setting_value", "version", "created", "updated" FROM "system_setting" WHERE "setting_key"=$1 LIMIT 1 [revision] - 639.796µs
when I go to my profile and start page.
I'm using memcached.
Looks like #22281
Gitea Version
1.21.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.42.0
Operating System
Ubuntu 20.04.x
How are you running Gitea?
gitea-1.21.0-linux-amd64
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: