»
S
I
D
E
B
A
R
«
Cakephp is not redirecting properly when pages are cached.
November 9th, 2009 by wood

I am having some issues with a site that was working correctly until i implemented full page caching in CakePHP.

I have followed the guidance in the Manual and have my $session->flash in a no-cache block as so:

<cake:nocache>
	<? 
	if($session->check('Message.flash')){
		$session->flash();
	} 
	?>
</cake:nocache>

However, whenever a controller sets a flash message and redirects to a cached page the page loads down to the tag and no further.. If i then go to a page created by another controller the correct (delayed) message is displayed and the page loads correctly.

Any help would be much appreciated,


Leave a Reply

»  Substance: PHP Frameworks   »  SiteMap