Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place
86
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove site cache upsert from main app

+1 -14
+1 -14
apps/main-app/src/routes/wisp.ts
··· 26 26 import type { Directory } from '@wispplace/lexicons/types/place/wisp/fs' 27 27 import { createLogger } from '@wispplace/observability' 28 28 import { Elysia } from 'elysia' 29 - import { upsertSite, upsertSiteCache } from '../lib/db' 29 + import { upsertSite } from '../lib/db' 30 30 import { createIgnoreMatcher, parseWispignore, shouldIgnore } from '../lib/ignore-patterns' 31 31 import { 32 32 addJobListener, ··· 885 885 886 886 // Store site in database cache 887 887 await upsertSite(did, rkey, siteName) 888 - 889 - // Cache the site files for the hosting service 890 - try { 891 - const fileCids: Record<string, string> = {} 892 - for (const blob of finalBlobs) { 893 - const normalizedPath = blob.filePath.replace(/^[^/]*\//, '') 894 - fileCids[normalizedPath] = blob.result.hash 895 - } 896 - await upsertSiteCache(did, rkey, record.data.cid, fileCids) 897 - } catch (err) { 898 - // Don't fail the upload if caching fails 899 - logger.warn('Failed to cache site files', err as any) 900 - } 901 888 902 889 // Clean up old subfs records if we had any 903 890 if (oldSubfsUris.length > 0) {