Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another
Commits
b693e88b
Commit
b693e88b
authored
Aug 05, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cache key
parent
9d6114dc
Pipeline
#39940
passed with stages
in 4 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/tournament/tournament.service.ts
src/tournament/tournament.service.ts
+3
-3
No files found.
src/tournament/tournament.service.ts
View file @
b693e88b
...
...
@@ -40,7 +40,7 @@ class TournamentCache {
@
CacheKey
()
cacheKey
()
{
return
`tournament_cache:
${
this
.
id
}
:
${
this
.
noAnalytics
?
1
:
0
}
`
;
return
`tournament_cache
2
:
${
this
.
id
}
:
${
this
.
noAnalytics
?
1
:
0
}
`
;
}
}
...
...
@@ -93,7 +93,7 @@ export class TournamentService extends CrudService(Tournament, {
Tournament
.
extraQueryForUser
(
user
,
qb
,
this
.
entityAliasName
);
qb
.
select
(
`
${
this
.
entityAliasName
}
.id`
);
});
const
key
=
`tournament_cache:
${
id
}
:
${
noAnalytics
?
1
:
0
}
`
;
const
key
=
`tournament_cache
2
:
${
id
}
:
${
noAnalytics
?
1
:
0
}
`
;
const
res
=
await
this
.
aragami
.
cache
(
TournamentCache
,
key
,
async
()
=>
{
const
result
=
await
this
.
findOne
(
id
);
if
(
result
.
data
)
{
...
...
@@ -551,6 +551,6 @@ export class TournamentService extends CrudService(Tournament, {
async
clearTournamentCache
(
id
:
number
)
{
if
(
!
id
)
return
;
this
.
log
.
log
(
`Clearing cache for tournament
${
id
}
`
);
await
this
.
aragami
.
clear
(
TournamentCache
,
`tournament_cache:
${
id
}
:`
);
await
this
.
aragami
.
clear
(
TournamentCache
,
`tournament_cache
2
:
${
id
}
:`
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment