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 8, 2024
1 parent 4ca0ae8 commit 205fa56
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 @@ -226,6 +226,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 @@ -371,6 +371,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 205fa56

Please sign in to comment.