# Check session variable before delivering cached page

**URL:** <https://forum.shopware.com/t/check-session-variable-before-delivering-cached-page/52365>\
**Category:** International (English Only)\
**Tags:** programming\
**Created:** [13. April 2018 um 13:26 UTC](https://forum.shopware.com/t/check-session-variable-before-delivering-cached-page/52365 "2018-04-13T13:26:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![odessite](https://avatars.discourse-cdn.com/v4/letter/o/f05b48/32.png) [@odessite](https://forum.shopware.com/u/odessite)\
**Post date:** [17. April 2018 um 15:50 UTC](https://forum.shopware.com/t/check-session-variable-before-delivering-cached-page/52365/2 "2018-04-17T15:50:29Z")

</div>

Hello,

You need to read this [article](https://developers.shopware.com/developers-guide/http-cache/).&nbsp; Shopware take html page from cache for pages, which described in this article.

Can you describe what exactly you want to do?

Some pages aren’t cached at all like account or checkout.

&nbsp;

For example you can check:

engine/Library/Enlight/View/Default.php::222

assign function contain third parameter where you can set flag - should/shouldn’t variable be cached.

Also you can create frontend [widget](https://developers.shopware.com/developers-guide/controller/). Widget will be handle separately.

---

_[View the full topic](https://forum.shopware.com/t/check-session-variable-before-delivering-cached-page/52365)._
