Re: Re: Bug #17541 [Opn]: cached file keeps old folder reference after renaming folder

From: Date: Fri, 28 May 2010 16:09:12 +0000
Subject: Re: Re: Bug #17541 [Opn]: cached file keeps old folder reference after renaming folder
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-7251@lists.php.net to get a copy of this message
Apc.stat = 1 will keep things cached until you tell apc to forget it (I.e. Restart php) I didn't understand how dangerous it was originally. I had sworn Rasmus said to turn it on at a talk so I tried it. Then realized it caches the stat call and everything which checks if the file exists, if it's been modified (which apc would then recache it normally..) On May 28, 2010, at 6:10 AM, Rene Gareau <rene.ayr1@gmail.com> wrote:
apc.stat=1 is set, I've included the rest of my config Thanks ; Enable apc extension module extension = apc.so ; Options for the apc module apc.enabled=1 apc.shm_segments=1 apc.shm_size=512 apc.ttl=7200 apc.user_ttl=7200 apc.stat=1 ;apc.num_files_hint= 4500000 apc.mmap_file_mask=/tmp/apc/apc.XXXXXX ;apc.enable_cli=1 apc.cache_by_default=1 ;apc.file_update_protection=10 apc.write_lock=1 On Fri, May 28, 2010 at 8:55 AM, PECL Bug Database <pecl-dev@lists.php.net>wrote:
ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://pecl.php.net/bugs/bug.php?id=17541&edit=2
ID:               17541
Updated by:       gopalv82@yahoo.com
Reported By:      rene dot ayr1 at gmail dot com
Status:           Open
Id:               17541
Type:             Bug
Package:          APC
Operating System: Red Hat 5.3
PHP Version:      5.2.13
New Comment: Are you using apc.stat=0? If you are and you want to rename directories, use apc.canonicalize=Off; Previous Comments: ------------------------------------------------------------------------ [2010-05-27 08:36:02] rene dot ayr1 at gmail dot com Description: ------------ cached file keeps old folder reference after renaming folder with APC enable visiting a url www.example.com/folder1/ renaming the folder1 to folder2 and visiting www.example.com/folder2/ will result in the includes to reference folder1 ------------------------------------------------------------------------


« previous php.pecl.dev (#7251) next »