RE: caching problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the issue is a caching proxy or browser caching I suggest you look into controlling the page caching header.

You can expire the header.

// calc an offset of 24 hours
 $offset = 3600 * 24;
 // calc the string in GMT not localtime and add the offset
 $expire = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
 //output the HTTP header
 Header($expire);

Just a thought.

Richard L. Buskirk


-----Original Message-----
From: Stuart Dallas [mailto:stuart@xxxxxxxx] 
Sent: Tuesday, June 28, 2011 7:53 AM
To: Fatih P.
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  caching problem

On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote:
> On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan
> <contact@xxxxxxxxxxxx (mailto:contact@xxxxxxxxxxxx)>wrote:
> 
> > On 06/28/2011 10:56 AM, Fatih P. wrote:
> > > Hi guys,
> > > 
> > > the code files are being cached. and modifications in methods are skipped
> > > and not executed. is there any parameter that i can pass it from ini
> > file?
> > > this has been so annoying for me. restarting apache, windows, etc does
> > not
> > > even help. im running apache 2.2.19, php ts 5.3.6 on windows 2003 r2
> > > any ideas how to avoid this situation? thanks
> > > 
> > > Fatih
> > 
> > It seems you have a wrongly configured opcode cache runnning about which
> > you're not aware of.
> > 
> > --
> > Regards,
> > Nilesh Govindarajan
> > @nileshgr on twitter/identica
> basically using default configuration, have not changed anything except the
> path for extensions in php.ini.
> and there is nothing installed/configured to cache anything.

Since restarting Apache does not help, the problem is obviously outside the web server. There are two possibilities I can think of...

* Browser caching

* Proxy caching

See if clearing your browser cache helps. If not then you probably have a proxy between you and the server that's caching the content.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux