Skip to content

Commit e6df6a3

Browse files
committed
cache invalidation
1 parent 39ca976 commit e6df6a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/sim/lib/blog/registry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export async function getPostBySlug(slug: string): Promise<BlogPost> {
162162
export function invalidateBlogCaches() {
163163
cachedMeta = null
164164
cachedAuthors = null
165+
Object.keys(postComponentsRegistry).forEach((key) => delete postComponentsRegistry[key])
165166
}
166167

167168
export async function getRelatedPosts(slug: string, limit = 3): Promise<BlogMeta[]> {

0 commit comments

Comments
 (0)