Hey all,
i have a login widget displayed in my side column on my website - and due to its location it is within an entries tag. That entries tag is clearly set to cache for performance, but it seems to be caching the logged_in and or logged_out state…
Surely this is incorrect behaviour or am i doing something very wrong?
For example, on a sandbox test i have the following:
{exp:channel:entries channel="test_channel" entry_id="3" limit="1" cache="yes" refresh="45" }
<h3>{title}</h3>
<p>{if logged_in}<br />
You are already logged in. <a href="http://{path=logout}">LOGOUT</a><br />
{/if}</p>
<p>{if logged_out}<br />
{exp:member:login_form return="my/page"}<br />
<label>Username</label></p>
<p><input type="text" name="username" value="" maxlength="32" class="input" size="25" /></p><br />
<label>Password</label></p>
<p><input type="password" name="password" value="" maxlength="32" class="input" size="25" /></p><br />
<input type="submit" name="submit" value="Submit" /></p><br />
{/exp:member:login_form}<br />
{/if}</p>
<p>{/exp:channel:entries}And this will always show the logged in value, even after i click the logout link - until i update the article, or the template in the control panel (i.e. that forces a clear of cache).
This is on a EE2.2.2 sandbox, and also occurs on an older 2.1.3 generation site…
Yes i guess caching turned off for this page solved the problem - but less than ideal!
N