Skip to content

Commit

Permalink
Fix #1582.
Browse files Browse the repository at this point in the history
Be sure that we clean the cache after publishing the project.
  • Loading branch information
teleyinex committed Aug 16, 2017
1 parent 7266a09 commit d501874
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pybossa/view/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,6 +1662,7 @@ def publish(short_name):
task_repo.delete_taskruns_from_project(project)
result_repo.delete_results_from_project(project)
webhook_repo.delete_entries_from_project(project)
cached_projects.delete_project(short_name)
auditlogger.log_event(project, current_user, 'update', 'published', False, True)
flash(gettext('Project published! Volunteers will now be able to help you!'))
return redirect(url_for('.details', short_name=project.short_name))
Expand Down

0 comments on commit d501874

Please sign in to comment.