Skip to content

Commit

Permalink
Add logic to invalidate menu link content cache on update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobefu committed May 5, 2024
1 parent 9e776f1 commit f68bb74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/base/server/api/cache/invalidate.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {

for (const tag of tags) {
for (const key of storageKeys) {
if (key.includes(`${tag.replace('/', ':')}&`))
if (key.includes(`${tag.replace('/', ':')}`))
await storage.removeItem(key)
}
}
Expand Down

0 comments on commit f68bb74

Please sign in to comment.