Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #2634: Clear cache of SQL session from TaskanaEngine #2626

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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