request the page once...  (see if it shows up in the caches/view folder in
temp

if yes then toss a superfluous
die( "Woops no Cache used");
in that view or controller action and request the page again.  If you get
back the page fine they I bet you got the cached one,  if you see your die
statement well, I bet you can guess ;)

Sam D

On 5/30/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
> On 5/30/07, Davide <[EMAIL PROTECTED]> wrote:
> >
> > Chris Hartjes wrote:
> > > As far as I know (I know I will be corrected if I am wrong) caching
> > > will only occur if you have debug set to 0.
> >
> > Maybe right but there's no mention of that in the manual. If true, how
> can
> > I check for cache working?
> >
>
> That's a good question...one people smarter than me will have to tell
> you.  In terms of testing, I guess the best way is to have your RSS
> feed spit out some time-specific info and if that info doesn't change,
> it's caching! ;)
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark - http://www.littlehart.net/attheballpark
> @TheKeyboard - http://www.littlehart.net/atthekeyboard
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to