- commit
- 19d8994
- parent
- cf7b590
- author
- Eric Bower
- date
- 2024-12-18 02:57:29 +0000 UTC
chore(pgs): cache logging chore(pgs): consistent pkg versions
3 files changed,
+13,
-3
M
go.mod
+1,
-1
1@@ -28,7 +28,7 @@ require (
2 github.com/charmbracelet/promwish v0.7.0
3 github.com/charmbracelet/ssh v0.0.0-20240725163421-eb71b85b27aa
4 github.com/charmbracelet/wish v1.4.3
5- github.com/darkweak/souin v1.7.6-0.20241208130618-0e1579f1adc7
6+ github.com/darkweak/souin v1.7.5
7 github.com/darkweak/souin/plugins/souin/storages v1.7.5
8 github.com/darkweak/storages/core v0.0.11
9 github.com/gkampitakis/go-snaps v0.5.7
M
go.sum
+2,
-2
1@@ -217,8 +217,8 @@ github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s=
2 github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
3 github.com/darkweak/go-esi v0.0.5 h1:b9LHI8Tz46R+i6p8avKPHAIBRQUCZDebNmKm5w/Zrns=
4 github.com/darkweak/go-esi v0.0.5/go.mod h1:koCJqwum1u6mslyZuq/Phm6hfG1K3ZK5Y7jrUBTH654=
5-github.com/darkweak/souin v1.7.6-0.20241208130618-0e1579f1adc7 h1:sC801fbkJbS3E9QZYdBYgoHn/NDUaBTgeqMVYW6S0CE=
6-github.com/darkweak/souin v1.7.6-0.20241208130618-0e1579f1adc7/go.mod h1:PcP+hhvYOdqn4OmeScKKvit0TihYVYS1o154mhfWT/s=
7+github.com/darkweak/souin v1.7.5 h1:drNhZc0GhSbGcugiGfcYdLDTcx3DCZW6o13wwRj5o5Y=
8+github.com/darkweak/souin v1.7.5/go.mod h1:PcP+hhvYOdqn4OmeScKKvit0TihYVYS1o154mhfWT/s=
9 github.com/darkweak/souin/plugins/souin/storages v1.7.5 h1:KlHnwecr1WVNdWJ2OfhBsY6OujWvzkomowjSoBAJgxY=
10 github.com/darkweak/souin/plugins/souin/storages v1.7.5/go.mod h1:ok3cIKHdIWjMtM6EgC8fBwNJL9hWG3deyTwN+M0zA4g=
11 github.com/darkweak/storages/badger v0.0.8 h1:rKVXrasVA74xgiqGRgW0kH11NUIlWwn9HiFyHUok85k=
+10,
-0
1@@ -300,11 +300,21 @@ func (web *WebRouter) cacheMgmt(ctx context.Context, httpCache *middleware.Souin
2 var mapping core.StorageMapper
3 if e := proto.Unmarshal(b, &mapping); e == nil {
4 for k := range mapping.GetMapping() {
5+ web.Logger.Info(
6+ "deleting key from cache",
7+ "surrogateKey", surrogateKey,
8+ "key", k,
9+ )
10 storer.Delete(k)
11 }
12 }
13 }
14
15+ web.Logger.Info(
16+ "deleting from cache",
17+ "surrogateKey", surrogateKey,
18+ "key", core.MappingKeyPrefix+key,
19+ )
20 storer.Delete(core.MappingKeyPrefix + key)
21 }
22 }