mirror of
https://github.com/rharkor/caching-for-turbo.git
synced 2025-06-08 01:37:01 +09:00
fix: cache key
This commit is contained in:
parent
9a5dc50a61
commit
8f6c1d1601
5 changed files with 5 additions and 5 deletions
2
dist/post/index.js
generated
vendored
2
dist/post/index.js
generated
vendored
|
@ -25672,7 +25672,7 @@ const env_1 = __nccwpck_require__(1363);
|
|||
exports.serverPort = 41230;
|
||||
exports.cachePath = 'turbogha_v2';
|
||||
exports.cachePrefix = core.getInput('cache-prefix')
|
||||
? `${core.getInput('cache-prefix')}-${exports.cachePath}`
|
||||
? `${exports.cachePath}-${core.getInput('cache-prefix')}`
|
||||
: exports.cachePath;
|
||||
const getCacheKey = (hash, tag) => `${exports.cachePrefix}${hash}${tag ? `#${tag}` : ''}`;
|
||||
exports.getCacheKey = getCacheKey;
|
||||
|
|
2
dist/post/index.js.map
generated
vendored
2
dist/post/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
|
@ -127059,7 +127059,7 @@ const env_1 = __nccwpck_require__(51363);
|
|||
exports.serverPort = 41230;
|
||||
exports.cachePath = 'turbogha_v2';
|
||||
exports.cachePrefix = core.getInput('cache-prefix')
|
||||
? `${core.getInput('cache-prefix')}-${exports.cachePath}`
|
||||
? `${exports.cachePath}-${core.getInput('cache-prefix')}`
|
||||
: exports.cachePath;
|
||||
const getCacheKey = (hash, tag) => `${exports.cachePrefix}${hash}${tag ? `#${tag}` : ''}`;
|
||||
exports.getCacheKey = getCacheKey;
|
||||
|
|
2
dist/setup/index.js.map
generated
vendored
2
dist/setup/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@ import { env } from './env'
|
|||
export const serverPort = 41230
|
||||
export const cachePath = 'turbogha_v2'
|
||||
export const cachePrefix = core.getInput('cache-prefix')
|
||||
? `${core.getInput('cache-prefix')}-${cachePath}`
|
||||
? `${cachePath}-${core.getInput('cache-prefix')}`
|
||||
: cachePath
|
||||
export const getCacheKey = (hash: string, tag?: string): string =>
|
||||
`${cachePrefix}${hash}${tag ? `#${tag}` : ''}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue