Skip to content

Commit e7eb5f2

Browse files
committed
chore(mcp): tighten clearCache comment to one block
1 parent af2c93c commit e7eb5f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/lib/mcp/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,9 +673,9 @@ class McpService {
673673
async clearCache(workspaceId?: string): Promise<void> {
674674
try {
675675
if (workspaceId) {
676-
// Enumerate without enabled/deletedAt filters so disabled or soft-deleted
677-
// servers still get their cache keys dropped (hard-deleted rows are gone
678-
// from the table and their keys expire naturally via TTL).
676+
// No enabled/deletedAt filter so disabled and soft-deleted rows are
677+
// cleared too. Hard-deleted rows are gone from the table; their keys
678+
// expire via TTL.
679679
const rows = await db
680680
.select({ id: mcpServers.id })
681681
.from(mcpServers)

0 commit comments

Comments
 (0)