Reply to Re: Does PHP "cache" scripts?

Your name:

Reply:


Posted by R. Rajesh Jeba Anbiah on 12/16/59 11:58

StevePBurgess@gmail.com wrote:
> I've just run the script in Firefox again and noticed something odd.
> There are two links, thus:
>
> MOVE UP - MOVE DOWN
>
> When I click on MOVE UP the database isn't updated but I get this in
> the address box when the script returns me to the main page:
>
> http://www.etc.com/credits.php?r=1158400161
>
> When I click MOVE DOWN the database isn't updated and I get this:
>
> http://www.etc.com/credits.php?r=1158400662
>
> if I click MOVE UP again I get
>
> http://www.etc.com/credits.php?r=1158400161
>
> which is the same as the first time I clicked it. The r= variable is
> the unix time stamp so either firefox is caching the page or my server
> is somehow going back in time! ;o)
>
> If I leave it for a while and try again, the number is updated to a new
> number (and sometimes the database is updated and the order on the
> credits page is changed).
<snip>

My guess:
1. You're paying more to your hosting provider and they have some
master-slave architecture for kinda data recovery.
2. Caching issue:
a. Your ISP is caching the pages
b. As your scripting is instructing to cache (so you better post the
link & phpinfo so that someone can dig the HTTP headers and provide
suggestion) or using .html extension (some buggy proxy implementation
will flag it as static page).

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация