Hi,
This cached number can be set through the policy : Interactive logon: Number of previous logons to cache (in case domain controller is not available) security policy setting under Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options.
It can be only set for the workstations , it will not work on the DCs.
You can change this number as you required.Such as 2 for the security reasons.
If you configure the Interactive logon: Number of previous logons to cache (in case domain controller is not available) setting to 0, which disables the local caching of logon information.The impact is that users cannot log on to any devices if there is no domain controller available to authenticate them.
For more information ,you can refer to the following link:https://learn.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/interactive-logon-number-of-previous-logons-to-cache-in-case-domain-controller-is-not-available
================================================================================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.