Re: [APC-DEV] APC showing wrong pages

[email protected] (Gopal V) Tue, 20 Mar 2007 07:50:02 +0530
Newsgroups php.apc.dev
Message-ID <[email protected]>
Craig Muth wrote:
> I noticed APC returning the cached values of the wrong pages.  I'd bring up
> x.php in my browser and see (apparently cached) content from y.php, then
> reload again and see the (correct) content from x.php.

I've never seen this happen myself - so if you have a decent enough
testcase, I'll be able to poke around it.

Some of the common issues happen with cvs/svn based sites which munge
mtime to make a file look older, eventhough it has been rewritten to
disk - BSD has known issues with that, but I assumed linux was immune
to it. So, if you are using something other than ext3, that would be
useful information to know.

On the other hand, you can also put printfs in apc_cache.c in a couple
of places (wherever slot->key.* is compared to key.*) to get some
debug info out of it.

> Is this a known problem?  Is the current version of APC recommended for 
> prod environments?

No, this isn't a known problem. And there are a couple of fixes in APC
HEAD which are sort of good/necessary to run APC 3.0.13 in production.
See the patches marked in

http://pecl.php.net/bugs/bug.php?id=10314

Cheers,
Gopal
-- 
The difference between insanity and genius is measured by success