Thursday, March 31, 2011

Re: redirect after delete not working

Found my problem: my server sets page expires to 60 seconds by
default. If I wait 60 sec. after the page is loaded to delete an item,
it works correctly.

I have added $this->disableCache() to my admin controller methods (or
you can add it to the beforeFilter if your controller deals only with
admin methods).

See http://book.cakephp.org/view/988/disableCache

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: