FlushChannelCache flush support. Currently test-only - added for unit test access from rest package
(ctx context.Context)
| 223 | |
| 224 | // FlushChannelCache flush support. Currently test-only - added for unit test access from rest package |
| 225 | func (c *DatabaseCollection) FlushChannelCache(ctx context.Context) error { |
| 226 | base.InfofCtx(ctx, base.KeyCache, "Flushing channel cache") |
| 227 | return c.dbCtx.changeCache.Clear(ctx) |
| 228 | } |
| 229 | |
| 230 | // ForceAPIForbiddenErrors returns true if we return 403 vs empty docs. This is controlled at the database level. |
| 231 | func (c *DatabaseCollection) ForceAPIForbiddenErrors() bool { |