Re: [PECL-DEV] Re: [PECL-BUG] Bug #17541 [Opn]: cached file keeps old folder reference after renaming folder
[email protected] (Michael Shadle) Fri, 28 May 2010 09:23:57 -0700
| Newsgroups | php.pecl.dev |
|---|---|
| Message-ID | <[email protected]> |
Ack. Then I must have it as 1 already :p Fuzzy memories of the config change. I'll be at your open source bridge talk next week :) </ unrelated> Sorry for the miscommunication! On May 28, 2010, at 9:20 AM, Rasmus Lerdorf <[email protected]> wrote: > You have it backwards. apc.stat=1 will stat the file on every request > to see if it has been modified. apc.stat=0 turns that stat off. > > -Rasmus > > On 5/28/10 9:09 AM, Michael Shadle wrote: >> 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 <[email protected]> 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 >>> <[email protected]>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: [email protected] >>>> 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 >>>> >>>> --- >>>> --- >>>> ------------------------------------------------------------------ >>>> >>>> >>>> >> >