Skip to content

Commit

Permalink
Merge pull request #291 from maretol/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
maretol authored Jan 25, 2025
2 parents e4a13fa + e12ab2f commit 4cd0d3a
Show file tree
Hide file tree
Showing 26 changed files with 1,808 additions and 2,311 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ updates:
- 'pages/'
- 'cms-data-fetcher/'
- 'ogp-data-fetcher/'
- 'cms-cache-purger/'
- '/'
schedule:
interval: 'daily'
Expand Down
4 changes: 2 additions & 2 deletions cms-cache-purger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "CMSのWebhookを受け取り影響のあるキャッシュを破棄する処理",
"main": "index.js",
"devDependencies": {
"@cloudflare/workers-types": "^4.20250109.0",
"@types/node": "^22.10.7",
"@cloudflare/workers-types": "^4.20250124.3",
"@types/node": "^22.10.10",
"cms-cache-key-gen": "^1.0.0"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions cms-cache-purger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export default {
},
}

// TODO: キーがなかった場合の考慮がなされていない
async function deleteContentsCache(env: Env) {
const list = await env.CACHE_KV_NAMESPACE.list<string>({ prefix: 'contents_' })
// すべての contents_ から始まるキーを削除する
Expand Down
Loading

0 comments on commit 4cd0d3a

Please sign in to comment.