Skip to content

Commit

Permalink
Changed cache from 7 days to 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
guyarb committed Sep 16, 2020
1 parent c5ded3c commit 97ae152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/post_run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45193,7 +45193,7 @@ function buildCacheKeys() {
keys.push(cacheKey);
// Periodically invalidate a cache because a new code being added.
// TODO: configure it via inputs.
cacheKey += `${getIntervalKey(7)}-`;
cacheKey += `${getIntervalKey(1)}-`;
keys.push(cacheKey);
if (yield pathExists(`go.mod`)) {
// Add checksum to key to invalidate a cache when dependencies change.
Expand Down
2 changes: 1 addition & 1 deletion dist/run/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45202,7 +45202,7 @@ function buildCacheKeys() {
keys.push(cacheKey);
// Periodically invalidate a cache because a new code being added.
// TODO: configure it via inputs.
cacheKey += `${getIntervalKey(7)}-`;
cacheKey += `${getIntervalKey(1)}-`;
keys.push(cacheKey);
if (yield pathExists(`go.mod`)) {
// Add checksum to key to invalidate a cache when dependencies change.
Expand Down
2 changes: 1 addition & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function buildCacheKeys(): Promise<string[]> {

// Periodically invalidate a cache because a new code being added.
// TODO: configure it via inputs.
cacheKey += `${getIntervalKey(7)}-`
cacheKey += `${getIntervalKey(1)}-`
keys.push(cacheKey)

if (await pathExists(`go.mod`)) {
Expand Down

0 comments on commit 97ae152

Please sign in to comment.