You should try this directive in config/core.php. It is supposed to
turn off all caching.
Configure::write('Cache.disable', true);
It is on line 71 (or close by) but commented ut.

Also make sure that you really really make the browser drop its cache
too. It is not enough to disable the cache in Cake if the browser
already has a cached version stored.


On Apr 10, 10:30 am, Dave J <[EMAIL PROTECTED]> wrote:
> Hi Ron,
>
> Usually adding $this->disableCache();  to the beforeRender() sends the
> correct headers to the browser so it won't cache the pages.
>
> However if you're using Cake's View caching, you'll soon find out (and
> rightly so) that no code from the Controllers gets executed after the
> first hit. We worked around this by putting the following lines in the
> main layout.
>
>     <cake:nocache>
>     <?php
>         header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
>         header("Pragma: no-cache");
>     ?>
>     </cake:nocache>
>
> Has anyone come across this or came up with a cleaner solution?
>
> On Apr 9, 6:26 pm, Ron Astonvarga <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I have an issue with caching.
>
> > I have cache switched off (     Configure::write('Cache.check', true); //
> > in core.php )
>
> > But my actions are still cached and I need to click on refresh every
> > time I want see the results of the action.
> > I tried to add
>
> > <meta http-equiv="cache-control" content="no-cache" />
> > <meta http-equiv="pragma" content="no-cache" />
>
> > to header of xhtml file, but this doesn't help too.
>
> > thanks for any idea
> > (running today's nightly build, tried 1.2.0.6311 from 01/02 too)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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