Skip to content

Commit

Permalink
Closes #2634: Add TaskanaEngine.clearSessionCache to clear cache of u…
Browse files Browse the repository at this point in the history
…nderlying SQL session
  • Loading branch information
CRoberto1926 authored and gitgoodjhe committed Aug 7, 2024
1 parent 46ab785 commit 4f8e8ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ default void runAsAdmin(Runnable runnable) {
*/
CurrentUserContext getCurrentUserContext();

/** Clears the cache of the underlying local SQL session. */
void clearSqlSessionCache();

/**
* Connection management mode. Controls the connection handling of taskana
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ public CurrentUserContext getCurrentUserContext() {
return currentUserContext;
}

@Override
public void clearSqlSessionCache() {
sessionManager.clearCache();
}

/**
* This method creates the sqlSessionManager of myBatis. It integrates all the SQL mappers and
* sets the databaseId attribute.
Expand Down

0 comments on commit 4f8e8ba

Please sign in to comment.