I am having difficulty with a cache issue, and hope someone can help
me. Here's the scenario. I am caching the "view" page of a blog, and
at the bottom of the page is a comment form. If someone posts a
comment, the cached blog page is deleted, as expected. The website
redirects back to the view page immediately, and the session flash
message is displayed, "Your comment has been saved." However, this
page gets cached, as does this one-time message.
In my default.ctp layout, where I am displaying my session flash
message (if there is one), I tried wrapping my flash message in the
<cake:nocache> tag, but it doesn't work. Is there a better way to
handle this? Here's what the relevant code in default.ctp looks like:
<cake:nocache>
<?php if ($session->check('Message.flash')) $session->flash() ?>
</cake:nocache>
Thanks in advance for any help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---