Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Render caching breaks ExtMenu "selected" class #551

Closed
ccandreva opened this Issue Oct 24, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

ccandreva commented Oct 24, 2012

If render caching is enabled, which I believe is the default, ExtMenu blocks are cached, resulting in the option with the "selected" class set also being cached. The upshot is the current link is right every 5 minutes, for one user.

I tried to add {nocache} tags to the templaete:

    {nocache}
    <li{if $item.url|replace:$baseurl:'' eq $currenturi|urldecode} class="selected"{/if}>
    {/nocache}

However this results in a Smarty error:

Notice: Undefined index: currenturi in /home/vwww/threevillageallergy/ztemp/view_compiled/Blocks/blocks_block_extmenu_topnav--t_PixelGreen-l_en.inc on line 12
class="selected"> Site search 
Contributor

phaidon commented Aug 2, 2013

This problem seems to be solved in 1.3-dev. Feel free to reopen the issue if you can still reproduce it with the current code.

@phaidon phaidon closed this Aug 2, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment