Skip to content

Commit 3cf9bcb

Browse files
authored
Merge pull request #81 from iberryful/master
fix drop cache
2 parents 3088c71 + b8d828f commit 3cf9bcb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/handlers/projects/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get(self, project_id, build_id):
124124
''', [build_id, project_id])
125125

126126
for j in jobs:
127-
key = 'project_%s_branch_%s_job_%s.tar.gz' % (project_id, j['branch'], j['name'])
127+
key = 'project_%s_job_%s.tar.snappy' % (project_id, j['name'])
128128
storage.delete_cache(key)
129129

130130
return OK('Cleared cache')

src/api/handlers/projects/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def get(self, project_id, job_id):
555555
if not job:
556556
abort(404)
557557

558-
key = 'project_%s_branch_%s_job_%s.tar.gz' % (project_id, job['branch'], job['name'])
558+
key = 'project_%s_job_%s.tar.snappy' % (project_id, job['name'])
559559
storage.delete_cache(key)
560560

561561
return OK('Cleared cache')

0 commit comments

Comments
 (0)