Question

Photo of DJ Grick

1

Cache issues with baptism example

I attempted to copy and paste the baptism example from the Websites Guide but ran into an issue with the cache duration. 

Both in  the page settings and block settings I have the cache set to "0" but it still seems to hold the information for an undetermined amount of time. I checked the parent page also just in case it was inheriting information from there but the entire way up everything is set to "0". 

Any thoughts? 

 

CMS
  • Jeremy Hoff

    Hi DJ - just confirming because it wasn't mentioned in your post - does the information "stick" as though it were cached even when using a different browser to visit the page?
    Thank you.

  • DJ Grick

    Yep. It's stuck on "DJ, remember the joy..." Even when I log out or log in as a different user.

  • Jeremy Hoff

    Hi DJ,
    I hope you will bear with me. :-)

    Are you saying the Liquid template example behind the link you posted is displaying the same Person.Nickname (DJ) regardless of which users is logged into Rock?

  • DJ Grick

    Sorry for not explaining it better. But that is what I am saying.


    As a little extra test I opened the HTML editor from a different user and saved it just to see and now I am stuck on that users name.

  • David Turner

    DJ, Does this block share context with any other HTML block (i.e. does the 'Context Parameter' or 'Context Name' field in the settings have a value)? Also, you're setting the "Cache Duration" setting to 0 (under Basic Settings) correct? There's another 'Output Cache Duration (seconds)' setting under the Advanced Settings which should also set to 0.

  • DJ Grick

    I hate to admit this but I completely missed the "output cache" under basic settings. I had only changed it under advanced settings. The problem seems to be resolved (I would mark it as answered but can't mark comments as the answer...).

  • Jon Edmiston

    DJ, could you summarize the solution in an answer and mark your own answer as 'correct'. That would help the next guy, and give you some extra points :)

  • Photo of DJ Grick

    2

    The problem was that I had not actually set the blocks cache duration to zero. I didn't realize that there was a duration setting in Block settings/basic settings/Cache Duration AND Block Settings/Advanced settings/Output Cache Duration (Seconds). 

    Once both where set to "0" the problem was resolved.