File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ export const websitesRouter = createTRPCRouter({
132132 }
133133 ) ;
134134
135- // Invalidate cache for this user's websites
136135 await drizzleCache . invalidateByTables ( [ 'websites' ] ) ;
137136
138137 return website ;
@@ -164,9 +163,7 @@ export const websitesRouter = createTRPCRouter({
164163 }
165164 ) ;
166165
167- // Invalidate cache for this user's websites
168166 await drizzleCache . invalidateByTables ( [ 'websites' ] ) ;
169- // Invalidate getById cache for this website
170167 await drizzleCache . invalidateByKey ( `getById:${ input . id } ` ) ;
171168
172169 return updatedWebsite ;
@@ -195,9 +192,7 @@ export const websitesRouter = createTRPCRouter({
195192 }
196193 ) ;
197194
198- // Invalidate cache for this user's websites
199195 await drizzleCache . invalidateByTables ( [ 'websites' ] ) ;
200- // Invalidate getById cache for this website
201196 await drizzleCache . invalidateByKey ( `getById:${ input . id } ` ) ;
202197
203198 return { success : true } ;
You can’t perform that action at this time.
0 commit comments