NYCPHP Meetup

NYPHP.org

[nycphp-talk] Using APC to improve performance.

Eddie Drapkin oorza2k5 at gmail.com
Fri Jul 17 14:23:24 EDT 2009


On Fri, Jul 17, 2009 at 1:47 PM, Konstantin Rozinov<krozinov at gmail.com> wrote:
> Hey guys,
>
> Just a follow-up question about APC.
>
> In production, I have apc.stat set to 0, so files aren't stat()ed
> everytime they're accessed for improved performance.
> Is it possible to have APC just re-stat() a single configuration file
> if I made some changes to it  (without setting apc.stat to 0 and
> restarting apache) ?
>
> Thanks for any insights,
> Konstantin
>
>
>
> On Tue, Mar 31, 2009 at 12:49 AM, Tom Melendez<tom at supertom.com> wrote:
>>> 4. Any links to really good APC howtos or tutorials would be greatly
>>> appreciated!
>>>
>>
>> Not at all what you asked, but....
>>
>> If you're using absolute paths in your require/include files and you
>> turn this off you should see gains:
>>
>> http://us.php.net/manual/en/apc.configuration.php#ini.apc.stat
>>
>> In setting it to zero, you tell it not to stat the file.  If you are
>> using some beefy framework with lots of includes this can be a big
>> win.
>>
>> Leave it set to 1 for development though.
>>
>> Thanks,
>>
>> Tom
>> http://www.liphp.org
>> _______________________________________________
>> New York PHP User Group Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> http://www.nyphp.org/show_participation.php
>>
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show_participation.php
>

Manually compile it with apc_compile_file().



More information about the talk mailing list