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