Re: Reload page in Cake PHP
This may help: http://groups.google.com/group/cake-php/msg/923dbe0a1ce415b8 On 17 апр, 20:42, NicoE <[EMAIL PROTECTED]> wrote: > Hi everybody. I am using redirect to take the user to the same index > page after deleting a post, but the old post still appears. Does the > redirect do a reload of the page or just take the user to the page? If > it does not, is there a way in Cake PHP to reload a page? > > Thanks a lot. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
Most likely it's IE's caching because it's setting "Check for newer version of stored pages" is not set to "Every time I visit the webpage" on your client's computer. I remember dealing with this issue on a non-Cake site and saw that changing this setting fixed the problem in IE, but of course, you can't control every client's browser settings. You can, however use HTTP Expires response headers to tell the browser how to cache your pages (http://support.microsoft.com/kb/ 234067). For Apache webservers, I believe you can set defaults for the Expires headers, but if you don't have control over the defaults, like in a shared hosting environment, you can control these Expires headers in a .htaccess file. Here's an example: ExpiresActive On ExpiresDefault "access plus 20 minutes" ExpiresByType text/HTML "modification plus 10 seconds" ExpiresByType image/gif "access plus 1 day" ExpiresByType image/png "access plus 1 day" ExpiresByType image/jpg "access plus 1 day" ExpiresByType image/x-ico "access plus 1 day" ExpiresByType text/CSS "access plus 1 day" Use of an HTTP traffic utility is extremely helpful in debugging these types of issues. It allows you to watch all the communitcation going on between the client/webserver (especially the headers and response codes) behind the scenes of your browser. FireBug is good for this in FireFox. Since IE is usually more problematic, I use a tool called HTTP Analyzer which can run stand-alone to monitor traffic from any browser. I highly recommend using such tools as you'll be surprised at some of the things you'll uncover. I suppose a "poor man's" approach to this problem would be to just append a randomly generated unique parameter to your URL that you ignore (www.yoursite.com/articles/yourarticle/[random-number-here]). Since no 2 URL's will ever be the same, you'll never have to worry about caching issues! Hope this helps. NOSLOW On Apr 17, 3:58 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: > When you click reload, does the old post still show up? If it does > not, then you may be dealing with some sort of local or server cache > issue. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
It does not show up. I guess it´s a client issue because I have no problems when trying with Firefox and Explorer. My client is the one with the problem. On Apr 17, 3:58 pm, Joshua Benner <[EMAIL PROTECTED]> wrote: > When you click reload, does the old post still show up? If it does > not, then you may be dealing with some sort of local or server cache > issue. > > On Apr 17, 3:22 pm, NicoE <[EMAIL PROTECTED]> wrote: > > >http://bin.cakephp.org/view/1774439709 > > > On Apr 17, 2:41 pm, gwoo <[EMAIL PROTECTED]> wrote: > > > > time to paste some code.http://bin.cakephp.org > > > > then, supply the link back to the paste. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
When you click reload, does the old post still show up? If it does not, then you may be dealing with some sort of local or server cache issue. On Apr 17, 3:22 pm, NicoE <[EMAIL PROTECTED]> wrote: > http://bin.cakephp.org/view/1774439709 > > On Apr 17, 2:41 pm, gwoo <[EMAIL PROTECTED]> wrote: > > > time to paste some code.http://bin.cakephp.org > > > then, supply the link back to the paste. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
http://bin.cakephp.org/view/1774439709 On Apr 17, 2:41 pm, gwoo <[EMAIL PROTECTED]> wrote: > time to paste some code.http://bin.cakephp.org > > then, supply the link back to the paste. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
time to paste some code. http://bin.cakephp.org then, supply the link back to the paste. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
Yes I am sure it is deleting because it works fine in most cases. My client tried to delete a post with Explorer 6.0 and nothing happens and when he hit "reload" the change mas made. On Apr 17, 2:31 pm, gwoo <[EMAIL PROTECTED]> wrote: > are you sure its deleting? set DEBUG to 2, comment out the redirect, > and see what query is produced. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Reload page in Cake PHP
are you sure its deleting? set DEBUG to 2, comment out the redirect, and see what query is produced. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---