06bc4af50e
* Remove WildFly distribution from documentation Closes #1665 * Update server_admin/topics/authentication/webauthn.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Update upgrading/topics/install_new_version.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Update upgrading/topics/migrate_db.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Update upgrading/topics/migrate_db.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Update server_admin/topics/realms/ssl.adoc * Update server_admin/topics/user-federation/ldap.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Update server_development/topics/providers.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Update server_development/topics/providers.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Remove section on cilent cert lookup in x509.adoc * Update securing_apps/topics/oidc/fapi-support.adoc Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com> * Add missing images for rh-sso images by moving to shared images as we won't have RH-SSO specific theme anymore Co-authored-by: Pedro Igor <pigor.craveiro@gmail.com>
18 lines
1 KiB
Text
18 lines
1 KiB
Text
[[offline-sessions-preloading]]
|
|
|
|
=== Offline sessions preloading
|
|
|
|
In addition to {jdgserver_name} caches, offline sessions are stored in a database which means they will be available even after server restart.
|
|
By default, the offline sessions are not preloaded from the database into the {jdgserver_name} caches during the server startup, because this
|
|
approach has a drawback if there are many offline sessions to be preloaded. It can significantly slow down the server startup time.
|
|
Therefore, the offline sessions are lazily fetched from the database by default.
|
|
|
|
However, {project_name} can be configured to preload the offline sessions from the database into the {jdgserver_name} caches during the server startup.
|
|
It can be achieved by setting `preloadOfflineSessionsFromDatabase` property in the `userSessions` SPI to `true`.
|
|
|
|
The following example shows how to configure offline sessions preloading.
|
|
|
|
[source,bash]
|
|
----
|
|
bin/kc.[sh|bat] start --spi-user-sessions-infinispan-preload-offline-sessions-from-database=true
|
|
----
|