# Does Parse Server check session token everytime?

**URL:** <https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059>\
**Category:** Uncategorized\
**Created:** [November 26, 2020, 8:51am UTC](https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059 "2020-11-26T08:51:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![uzaysan](https://community.parseplatform.org/user_avatar/community.parseplatform.org/uzaysan/32/59_2.png) [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Post date:** [November 26, 2020, 8:51am UTC](https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059/1 "2020-11-26T08:51:48Z")

</div>

I’m doing some benchmark test to my parse server. I’m using wrk library. I pass one session token on the headers.  
So every time benchmark opens a new connection, same session token is used.

My question is does parse server check token from database everytime or cache it for sometime?  
I’m doing 500 concurrent user test with 1 session token and I get 500 request per second, Do I get the same performance when 500 different token is used?

I don’t have a cache adapter. Only cache I’m using is `enableSingleSchemaCache`.

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [November 27, 2020, 6:16pm UTC](https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059/2 "2020-11-27T18:16:48Z")

</div>

There is a cache in place which TTL can be setup via `cacheTTL` option and defaults 5s.

---

<div class="post-metadata">

**Author:** ![uzaysan](https://community.parseplatform.org/user_avatar/community.parseplatform.org/uzaysan/32/59_2.png) [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Post date:** [November 27, 2020, 6:54pm UTC](https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059/3 "2020-11-27T18:54:48Z")

</div>

how to disable that? is setting cacheTTL to 0 enough?

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [November 27, 2020, 7:04pm UTC](https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059/4 "2020-11-27T19:04:52Z")

</div>

I believe 0 should disable.

---

<div class="post-metadata">

**Author:** ![uzaysan](https://community.parseplatform.org/user_avatar/community.parseplatform.org/uzaysan/32/59_2.png) [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Post date:** [November 27, 2020, 7:07pm UTC](https://community.parseplatform.org/t/does-parse-server-check-session-token-everytime/1059/5 "2020-11-27T19:07:06Z")

</div>

Ok. Thank you very much
