Re: APC & Custom streams

From: Date: Fri, 23 Sep 2005 19:45:41 +0000
Subject: Re: APC & Custom streams
References: 1 2 3 4  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2973@lists.php.net to get a copy of this message
> > Do I understand you to mean that *if* a wrapper implements url_stat() and > > *if* the stat_buf is populated with, at minimum, those three elements that > > APC will cache? > > I don't use a wrapper here. The code in question is in > pecl/apc/apc_cache.c and it looks like this: > [...snip...] > > So, for the top-level script I get the stat struct from Apache via > sapi_get_stat(). For included files I use apc_stat() which just does a > normal stat() call. This would have to be changed to use the wrapper > code for it to have any chance of working. > Roger. Anyway, the "gain" of including wrapped streams is probably small compared to the cost of issuing url_stat()s, just wanted to be clear. One thing this does mean though is that the payload portion of PHARs won't be cached. -Sara

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