Gusted 4c8b67c4b2
[BUG] Store JSON in contributors commit cache
- The code that gets contributor stats tried to store an
`map[string]*ContributorData` type in the cache, this works for the
memory cache but not for other caches such as Redis.
- The cache implementation for Redis would convert this map via
`fmt.Sprintf` to an string, which would simply print the pointer and not
the value of the pointer. Storing pointers is a no-go as this will get
GC-ed eventually within a few minutes. Therefore store everything with
json, that does properly store the value of the pointers.
- Adds unit test that verifies JSON is being used.
- Resolves https://codeberg.org/forgejo/forgejo/issues/3158
2024-04-11 13:01:33 +02:00
..
2024-04-08 12:51:27 +02:00
2024-03-31 10:52:24 +05:00
2024-04-08 12:51:27 +02:00
2024-03-28 05:42:25 +01:00
2024-04-08 12:51:27 +02:00
2023-12-25 21:25:29 +01:00
2024-04-03 15:11:17 -05:00
2024-04-09 20:02:14 +02:00
2024-03-25 16:27:32 +01:00