I think Alfredo probably meant wrap just the nocache tags, like this:
div id=content
!-- cake:nocache --
?php if ($session-check('Message.flash')) $session-flash(); ?
!-- /cake:nocache --
?= $content_for_layout ?
/div
- Keith
I have the following in my main layout:
div id=content
cake:nocache?php if ($session-check('Message.flash'))
$session-flash(); ?/cake:nocache
?= $content_for_layout ?
/div
Because it's in the layout, views that I don't want cached won't have
the cake tags stripped This is
I wonder what will happen if you wrap the cake:nocache tags with a comment
!-- --
Have you tried that?
Regards,
Alfredo
On Sun, Feb 15, 2009 at 8:35 PM, brian bally.z...@gmail.com wrote:
I have the following in my main layout:
div id=content
cake:nocache?php if
Then I would never see what's inside.
On Sun, Feb 15, 2009 at 8:40 PM, Alfredo Quiroga-Villamil
laww...@gmail.com wrote:
I wonder what will happen if you wrap the cake:nocache tags with a comment
!-- --
Have you tried that?
Regards,
Alfredo
On Sun, Feb 15, 2009 at 8:35 PM, brian
I meant something like this.
div id=content
!-- cake:nocache --
?php if ($session-check('Message.flash'))
$session-flash(); ?
!-- /cake:nocache --
?= $content_for_layout ?
/div
I am trying to imagine how both FF and cake would be parsing the
content of the view to determine
Oh, of course! Sorry, a little slow this evening. That works like a
charm. I think this tip should be included in the cookbook section
about caching.
But I'd actually just fixed it another way. It turned out that FF is
ignoring the tags. The problem was that I have this bit of javascript
that
Awesome, I am glad you figured it out.
Regards,
Alfredo
On Sun, Feb 15, 2009 at 9:38 PM, brian bally.z...@gmail.com wrote:
Oh, of course! Sorry, a little slow this evening. That works like a
charm. I think this tip should be included in the cookbook section
about caching.
But I'd