RE: cake:nocache and uncached views

2009-02-16 Thread Keith Norris Gmail
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

cake:nocache and uncached views

2009-02-15 Thread brian
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

Re: cake:nocache and uncached views

2009-02-15 Thread Alfredo Quiroga-Villamil
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

Re: cake:nocache and uncached views

2009-02-15 Thread brian
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

Re: cake:nocache and uncached views

2009-02-15 Thread Alfredo Quiroga-Villamil
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

Re: cake:nocache and uncached views

2009-02-15 Thread brian
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

Re: cake:nocache and uncached views

2009-02-15 Thread Alfredo Quiroga-Villamil
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