# 2FA Caching doesn't work anymore

**URL:** <https://forum.pritunl.com/t/2fa-caching-doesnt-work-anymore/1097>\
**Category:** Pritunl VPN\
**Created:** [June 5, 2023, 9:46am UTC](https://forum.pritunl.com/t/2fa-caching-doesnt-work-anymore/1097 "2023-06-05T09:46:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wf10](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/w/77aa72/32.png) [@wf10](https://forum.pritunl.com/u/wf10)\
**Post date:** [June 5, 2023, 9:46am UTC](https://forum.pritunl.com/t/2fa-caching-doesnt-work-anymore/1097/1 "2023-06-05T09:46:02Z")

</div>

For testing reasons, I disabled the caching option on Pritunl. Now, I activated it again, but I have to make the 2FA every time.  
I disabled:  
pritunl set app.sso\_cache\_timeout false  
pritunl set app.sso\_client\_cache\_timeout false

I activated:  
pritunl set app.sso\_cache\_timeout 28800  
pritunl set app.sso\_client\_cache\_timeout 172800

Log at Server:

[patient-fields-8830][2023-06-05 09:38:21,168][INFO] Storing authentication cache token  
user\_name = “uersname”  
factors = [“otp”]

Any ideas?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [June 5, 2023, 2:16pm UTC](https://forum.pritunl.com/t/2fa-caching-doesnt-work-anymore/1097/2 "2023-06-05T14:16:37Z")

</div>

Setting the timeout to incorrect values isn’t going to disable the cache. The options are in the top right settings of the web console. The option will require the client to update the configuration, if configuration sync isn’t working the profile will need to be reimported.

The command `sudo systemctl restart pritunl` should be run after modifying the timeout values.

---

<div class="post-metadata">

**Author:** ![hirenshah005](https://forum.pritunl.com/user_avatar/forum.pritunl.com/hirenshah005/32/392_2.png) [@hirenshah005](https://forum.pritunl.com/u/hirenshah005)\
**Post date:** [June 17, 2023, 3:33am UTC](https://forum.pritunl.com/t/2fa-caching-doesnt-work-anymore/1097/3 "2023-06-17T03:33:37Z")

</div>

When we execute pritunl set command where this values are stored?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [June 18, 2023, 2:52am UTC](https://forum.pritunl.com/t/2fa-caching-doesnt-work-anymore/1097/4 "2023-06-18T02:52:50Z")

</div>

These values are stored in the database and applied to all hosts in a cluster. Some values are modifying database indexes and require restarting at least one host in a cluster.
