Skip to content

Commit

Permalink
update task caching for task bundling endpoints (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak authored Jun 2, 2024
1 parent c6d2bf3 commit f1e9b83
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ class TaskBundleRepository @Inject() (
} catch {
case e: Exception => this.logger.warn(e.getMessage)
}
taskRepository.cacheManager.cache.remove(task.id)
}

TaskBundle(bundleId, user.id, lockedTasks.map(task => {
Expand Down Expand Up @@ -212,6 +213,7 @@ class TaskBundleRepository @Inject() (
case e: Exception =>
this.logger.warn(e.getMessage)
}
taskRepository.cacheManager.cache.remove(task.id)
}
}
}
Expand Down Expand Up @@ -270,6 +272,7 @@ class TaskBundleRepository @Inject() (
case e: Exception => this.logger.warn(e.getMessage)
}
}
taskRepository.cacheManager.cache.remove(task.id)
case None => // do nothing
}
}
Expand Down Expand Up @@ -311,6 +314,7 @@ class TaskBundleRepository @Inject() (
case e: Exception => this.logger.warn(e.getMessage)
}
}
taskRepository.cacheManager.cache.remove(task.id)
}
}
}
Expand Down

0 comments on commit f1e9b83

Please sign in to comment.