I made an extension that adds an item to the header navigation if you are within a certain user group. However, because of caching, it wont always show after logging in and wont always go away if you log out.
Is there a way around this? I could disable caching for the block I think but it would cause the page itself to not cache and being that its on every page that would slow down the site dramatically.