1
0
Fork 0
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:
rharkor 2025-04-10 11:36:49 +02:00
parent 9a5dc50a61
commit 8f6c1d1601
5 changed files with 5 additions and 5 deletions

2
dist/post/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

2
dist/setup/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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}` : ''}`