Skip to content

Commit c32b723

Browse files
committed
mysql cleanup
1 parent 687f514 commit c32b723

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

en/identity-server/5.11.0/docs/setup/token-persistence.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ In large-scale WSO2 Identity Server deployments, especially with millions of use
601601
```
602602

603603
??? Example "Postgres"
604-
604+
605605
```sql
606606
CREATE TABLE IF NOT EXISTS IDN_OAUTH2_REFRESH_TOKEN (
607607
REFRESH_TOKEN_ID VARCHAR(255) PRIMARY KEY,
@@ -683,6 +683,7 @@ In large-scale WSO2 Identity Server deployments, especially with millions of use
683683
[oauth.token_persistence]
684684
retain_revoked_access_token = false
685685
```
686+
686687
### Removing unused refresh tokens and revoke entries from the Database
687688
688689
!!! note
@@ -694,8 +695,8 @@ However, over time, the accumulation of such records can impact overall server p
694695
695696
The following sections guide you through the difference ways to perform cleanup and how to configure them.
696697
697-
- [**Token Cleanup via Stored Procedure** (Recommended)](#token-cleanup-via-stored-procedure)
698-
- [**Configuring WSO2 Identity Server for token cleanup**](#configuring-wso2-identity-server-for-token-cleanup)
698+
- [**Token Cleanup via Stored Procedure** (Recommended)](#token-cleanup-via-stored-procedure)
699+
- [**Configuring WSO2 Identity Server for token cleanup**](#configuring-wso2-identity-server-for-token-cleanup)
699700
700701
#### Token Cleanup via Stored Procedure
701702
@@ -722,9 +723,9 @@ method.
722723

723724
This script:
724725

725-
* Backs up token-related tables (if enabled)
726-
* Deletes eligible expired, revoked, or inactive entries
727-
726+
- Backs up token-related tables (if enabled)
727+
- Deletes eligible expired, revoked, or inactive entries
728+
728729
3. **Restart the Server**
729730
Once cleanup is complete, restart **WSO2 Identity Server** with the updated and cleaned database. You can optionally **schedule periodic execution** of the cleanup procedure.
730731

0 commit comments

Comments
 (0)