Re: realpath() caching

From: Date: Tue, 21 Sep 2004 17:51:32 +0000
Subject: Re: realpath() caching
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-12923@lists.php.net to get a copy of this message
clearstatcache() is the wrong place to do this, but I certainly agree that the capability to flush the cache should exist. -Sara "Alan Knowles" <alan@akbkhome.com> wrote in message news:414F9CB7.8020904@akbkhome.com... > Just a thought, should clearstatcache() force the reset of the cache? > I cant think of many situations where you would re-build directory > tree's on the fly, but you never know what to expect from PHP users :) > > Regards > Alan > > Andi Gutmans wrote: > > > Thanks for pointing out that the attachment didn't make it through. > > You can find it at: > > http://snaps.php.net/~andi/realpath_cache2.diff > > > > Andi > > > > At 06:28 PM 9/20/2004 -0700, Andi Gutmans wrote: > > > >> Hi, > >> > >> Attached is the promised patch to do realpath() caching. > >> You can set cache size and TTL via the php.ini (default is 2 minutes > >> TTL and 16K memory). > >> It doesn't use the SAPI time() but uses the syscall time() because it > >> seemed to be slightly faster but we can adjust it to use the SAPI one > >> if anyone measures a difference in performance (might depend on the OS). > >> > >> Feedback welcome. > >> Also any feedback on the VM patch? I'd like to commit it soon but I > >> haven't heard anything from this list (people were saying they wanted > >> to review it). > >> > >> Thanks, > >> Andi > >> > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.internals (#12923) next »