Jump to content
thirty bees forum
  • 0

Full page cache bug?


braffas

Question

Hello. I just noticed that a users name was cached in the nav section. That's pretty bad.

I tested it by logging in and refreshing the cache, and yep my name was cached in the nav section when i was logged out (also tested in other browser). ~~It only happens on the index page.~~ it happens on all cached pages

I will investigate further. But any idea how this can happen?

It seems to help when i enable the 'user info block' in the cache settings.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Good point. I didn't realize that. In my theme I use this: <a href="{$link->getPageLink('my-account', true)|escape:'html'}">{if $logged}{$customerName}{else}Mein Konto{/if}</a> It has similair problems...

Is there a way to prevent some specific smarty variables from caching?

Link to comment
Share on other sites

  • 0

@wakabayashi Yes, that seems to work. But not caching a stock module like blockuserinfo, should probably be a default feature. Also when i look at the cached data inside redis, the page with username is still cached, that freaked me out a bit. When i get back to work, i have to check how exactly the dynamic module hooks are handled before i enable full page caching again. I don't want customer names in google search results etc :D

Link to comment
Share on other sites

  • 0

Everything seems to work as expected when the blockuserinfo->displayNav is marked as dynamic.

So it's not really a bug, but it a very important thing to change before you activate fullpage cache.

Can anyone give a short explanation about how the dynamic hooks are handled, or is it documented somewhere?

Link to comment
Share on other sites

  • 0

It's not the first time me or somebody else asking about full page cache short tutorial. It would be nice to have such, written by someone familiar with. After all it is only thirty bees and it is native feature which with ease could mess things up. Could be great article for the blog and documentation. If there is anyone already using it with success and knows what he's doing, please share your experience with the community!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...