[PR #3376] [MERGED] Enable caching on assets and avatars #16912

Closed
opened 2025-11-02 12:21:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3376
Author: @thehowl
Created: 1/15/2018
Status: Merged
Merged: 2/3/2018
Merged by: @lafriks

Base: masterHead: fix-3323


📝 Commits (6)

  • eb16186 Enable caching on assets and avatars
  • 4e66d26 Only set avatar in user BeforeUpdate when there is no avatar set
  • 1543ddc add error checking after stat
  • dbc536e gofmt
  • 54926d7 Change cache time for avatars to an hour
  • 79fadd1 Merge branch 'master' into fix-3323

📊 Changes

5 files changed (+155 additions, -34 deletions)

View changed files

📝 models/user.go (+1 -1)
📝 modules/public/dynamic.go (+1 -6)
📝 modules/public/public.go (+132 -6)
📝 modules/public/static.go (+10 -13)
📝 routers/routes/routes.go (+11 -8)

📄 Description

fix #3323. Also, fixed a bug where whenever an avatar was uploaded but the user didn't reset the AvatarEmail field in the settings page, the hash would be set to the email and the avatar would be uploaded there (to the address of the hash of the email).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3376 **Author:** [@thehowl](https://github.com/thehowl) **Created:** 1/15/2018 **Status:** ✅ Merged **Merged:** 2/3/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix-3323` --- ### 📝 Commits (6) - [`eb16186`](https://github.com/go-gitea/gitea/commit/eb161866a794d586418f07e7458ff65d84855af9) Enable caching on assets and avatars - [`4e66d26`](https://github.com/go-gitea/gitea/commit/4e66d2618fbfcd3de93df7a09161ead7c867473c) Only set avatar in user BeforeUpdate when there is no avatar set - [`1543ddc`](https://github.com/go-gitea/gitea/commit/1543ddce1dbb395e976ebe466a8cd914535e4b08) add error checking after stat - [`dbc536e`](https://github.com/go-gitea/gitea/commit/dbc536edfd72353d9974b1725a5e3d2ef62401bd) gofmt - [`54926d7`](https://github.com/go-gitea/gitea/commit/54926d7913d4e1502b484915d8711e7afe310530) Change cache time for avatars to an hour - [`79fadd1`](https://github.com/go-gitea/gitea/commit/79fadd1177a6dbed5f7156fe1be043ff96864d71) Merge branch 'master' into fix-3323 ### 📊 Changes **5 files changed** (+155 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `models/user.go` (+1 -1) 📝 `modules/public/dynamic.go` (+1 -6) 📝 `modules/public/public.go` (+132 -6) 📝 `modules/public/static.go` (+10 -13) 📝 `routers/routes/routes.go` (+11 -8) </details> ### 📄 Description fix #3323. Also, fixed a bug where whenever an avatar was uploaded but the user didn't reset the AvatarEmail field in the settings page, the hash would be set to the email and the avatar would be uploaded there (to the address of the hash of the email). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:21:58 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16912