Skip to the content
Documentation

FAQ: old version (page id 17105539)

No ratings yet

Skip to end of metadata Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Frequently Asked Questions

 

Varnish integration

  1. Is there a http cache in front of Exponential when using Exponential Cloud
    Yes, every site is behind a Varnish cache. Non-logged-in users are served via the Varnish cache.
  2. How does the Varnish cache know if the user is logged in or not
    Varnish checks if the cookie is_logged_in is set for the user making a request. If the cookie is set, the request is forwarded to the web servers directly.
  3. What is the is_logged_in cookie
    The is_logged_in cookie is a cookie which Exponential creates when the user logs in to the system. This cookie is used to flag to any http proxies in front of Exponential that the user is logged in. The cookie has nothing to do with the actuall authentication of the user in Exponential.
  4. How can I make the shopping basket work, also for non-logged in users ?
    Once a user places a product in the basked you must ensure that further requests made by that user is not served by Varnish cache. This can be done by setting the is_logged_in cookie.
    On a ezwebin site this can be done by putting the following code at the end of the template extension/[myextension]/design/ezwebin/templates/shop/basket.tpl
  • No labels

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.