# Pn.state.cache how much does it store?

**URL:** <https://discourse.holoviz.org/t/pn-state-cache-how-much-does-it-store/2798>\
**Category:** Panel\
**Tags:** panel\
**Created:** [September 13, 2021, 5:18pm UTC](https://discourse.holoviz.org/t/pn-state-cache-how-much-does-it-store/2798 "2021-09-13T17:18:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [September 13, 2021, 5:18pm UTC](https://discourse.holoviz.org/t/pn-state-cache-how-much-does-it-store/2798/1 "2021-09-13T17:18:49Z")

</div>

Is there a limit and when does it get cleared?

---

<div class="post-metadata">

**Author:** ![philippjfr](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/philippjfr/32/7_2.png) [@philippjfr](https://discourse.holoviz.org/u/philippjfr)\
**Post date:** [September 13, 2021, 5:29pm UTC](https://discourse.holoviz.org/t/pn-state-cache-how-much-does-it-store/2798/2 "2021-09-13T17:29:57Z")

</div>

> Is there a limit and when does it get cleared?

No limit and never. That said for 0.13.0 I’m planning to add some control here, i.e. provide helpers that allow users to provide cache control such as keeping the only the most recently/frequently used items, providing a TTL, etc. If you’ve got ideas or requests around this I’d love to hear them.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [September 13, 2021, 5:32pm UTC](https://discourse.holoviz.org/t/pn-state-cache-how-much-does-it-store/2798/3 "2021-09-13T17:32:39Z")

</div>

Those features would be awesome!
