Re: APC & Custom streams
| From: | Rasmus Lerdorf | Date: | Fri, 23 Sep 2005 14:32:04 +0000 |
| Subject: | Re: APC & Custom streams | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2965@lists.php.net to get a copy of this message | ||
Simon Kissane wrote:
> Hi
>
> Does APC support caching PHP files which are included/required from
> non-file urls? e.g., if i define a custom url scheme, e.g.
> module://utils/main.inc, will APC cache includes/requires of such
> urls?
It can't really do that. APC does a stat() on the script file to get
file's device, inode and mtime. Based on this it inserts the opcodes
into the cache hashed on device+inode and it uses the mtime to determine
if it should replace the opcodes if they are already there.
> If APC doesn't support this, do the APC developers have any plans to
> add it? Would it be hard to add myself?
No plans and yes, it would be difficult. You would need to somehow map
device+inode+mtime to something in your zip file.
-Rasmus