@@ -123,38 +123,38 @@ func NewSiteService(conf config.Config, db db.DB, queue queue.Queue, mailer mail
123123
124124 pagesHtmlCache := memorycache .New (
125125 memorycache.WithTTL [string , []byte ](48 * time .Hour ),
126- memorycache.WithCapacity [string , []byte ](20_000 ),
126+ memorycache.WithCapacity [string , []byte ](1_000 ),
127127 memorycache .WithInsertHook (zstdCompressInsertHook ),
128128 memorycache .WithGetHook (zstdDecompressGetHook ),
129129 )
130130
131131 assetsCache := memorycache .New (
132132 memorycache.WithTTL [string , []byte ](48 * time .Hour ),
133- memorycache.WithCapacity [string , []byte ](500 ),
133+ memorycache.WithCapacity [string , []byte ](50 ),
134134 )
135135
136136 pagesBodyHtmlCache := memorycache .New (
137137 memorycache.WithTTL [string , []byte ](48 * time .Hour ),
138- memorycache.WithCapacity [string , []byte ](20_000 ),
138+ memorycache.WithCapacity [string , []byte ](1_000 ),
139139 memorycache .WithInsertHook (zstdCompressInsertHook ),
140140 memorycache .WithGetHook (zstdDecompressGetHook ),
141141 )
142142
143143 pagesCache := memorycache .New (
144144 memorycache.WithTTL [string , site.Page ](48 * time .Hour ),
145- memorycache.WithCapacity [string , site.Page ](20_000 ),
145+ memorycache.WithCapacity [string , site.Page ](1_000 ),
146146 )
147147
148148 feedsCache := memorycache .New (
149149 memorycache.WithTTL [string , []byte ](48 * time .Hour ),
150- memorycache.WithCapacity [string , []byte ](20_000 ),
150+ memorycache.WithCapacity [string , []byte ](1_000 ),
151151 memorycache .WithInsertHook (zstdCompressInsertHook ),
152152 memorycache .WithGetHook (zstdDecompressGetHook ),
153153 )
154154
155155 sitemapsCache := memorycache .New (
156156 memorycache.WithTTL [string , []byte ](48 * time .Hour ),
157- memorycache.WithCapacity [string , []byte ](20_000 ),
157+ memorycache.WithCapacity [string , []byte ](1_000 ),
158158 memorycache .WithInsertHook (zstdCompressInsertHook ),
159159 memorycache .WithGetHook (zstdDecompressGetHook ),
160160 )
0 commit comments